1. What is java and what technologies does it contain? 1. Java is a high-level object-oriented programming language. 2. Java includes
a) (Basics of java)
b) javaee (java enterprise-level application)
2. 3 steps to write java programs using Notepad
1. Create an extension. java source file of java
2. Compile the java source file to generate a bytecode file with the extension .class
In the dos command window, enter [javac file name.java] and then Enter
3. Execute the java program
In the dos command window, enter [java file name] and press Enter
3. The framework of the java program
public class class name{
public static void main(String[]args){
//In this method, output information
System.out.println ("Content to be output");
}
}
Notes:
1. The class name must be the same as the file name, and the class name must be the same as the file name. The first letter of the name is capital
2. (String) must be capital S
3. System starts with capital S
4. All symbols ({}, (), ;) are all entered in English
The above is the detailed content of JAVA learning. For more information, please follow other related articles on the PHP Chinese website!