#1. This chapter is a summary of your study of the knowledge of this chapter.
Read about the development of Java
Meet Jvm/jre/jdk and learn to install JDK
Java is so troublesome to say ...
1. Why are Java programs running across platforms? What are the steps to execute a Java program? (please write in your own language.)
The code compiled by the Java program is not code that can be run directly by the hardware system, but rather an intermediate code that is translated by the Java Virtual Machine (JVM) into code that can be executed by different platform hardware.
2. What is the difference between a JDK?JDK,JRE,JVM?
The JDK is the Java Language Software tool development package that contains the runtime environment, tools, and library functions.
The JRE is the Java platform, contains only the environment, does not contain the programming part, if the computer runs only JAVA,JRE can, but cannot edit, the JVM is a part of the JRE, is the virtual environment.
3.java HelloWorld Command, what does this parameter refer to in HelloWorld? Is it a file name? What is the meaning of this command?
HelloWorld is the class name, and the Java program specifies that all program code is defined in the class. There is a public keyword in front of class, which indicates that the Heollo class is open. This command is the *class file that performs the compilation.
What is the use of 4.path variables? What is the use of classpath variables?
CLASSPATH environment variables. The function is to specify the class search path. The JVM is looking for classes through classpth.
Path environment variable. The function is to specify the command search path, execute the command below the command line, such as Javac compiling the Java program, it will look in the path specified by the paths variable to see if the corresponding command program can be found.
5. What is the difference between writing a program in Java and running a program and running it with the C language, and the intermediate and target files that are generated?
Before Java compilation. Java compiled. Class .... c before compiling. C post-compilation obj,
What are the 3 app versions of the 6.Java language? What is the relationship between versions? (This is not a good thing to say))
* Java SE (Java platform,standard Edition). Java SE was formerly known as J2SE. It allows you to develop and deploy Java applications that are used in desktops, servers, embedded environments, and live environments. Java SE contains classes that support Java WEB Service development and provides the foundation for Java platform,enterprise Edition (Java EE).
* Java EE (Java platform,enterprise Edition). This version was formerly known as the Java EE. The Enterprise Edition helps develop and deploy portable, robust, scalable, and secure server-side Java applications. Built on the Java SE, Java EE provides WEB services, component models, management, and communication APIs that can be used to implement enterprise-class service-oriented architecture (service-oriented Architecture,soa) and Web2.0 applications.
* Java ME (Java platform,micro Edition). This version was formerly known as J2ME. Java ME provides a robust and flexible environment for applications running on mobile devices and embedded devices such as mobile phones, PDAs, TV set-top boxes, and printers. Java ME includes a flexible user interface, robust security model, many built-in network protocols, and rich support for Web and offline applications that can be dynamically downloaded. Applications based on the Java ME specification need to be written once, can be used for many devices, and can take advantage of the native capabilities of each device.
What is the difference between a 7.Oracle jdk and an open JDK?
The license agreement differs: OPENJDK is released using the GPL V2 protocol, while Sun JDK uses JRL to release
OpenJDK source code is incomplete, some source code is replaced with open source code
What are the main applications of 8.Java? What are your goals and expectations in this course?
Embedded, Web, Android
Hope can be able to really master a language, can learn it well ...
201521123030 Java programming 1th Week of study summary