A set of ORDERED commands written to allow a computer to perform certain operations or solve a problem
Java SE: Standard Edition
The Foundation and core of A:java technology
B: Primarily for developing desktop applications
Java EE: Enterprise Edition
A: A complete solution for ENTERPRISE-CLASS application development
B: Many websites are developed using Java EE technology
Java ME: Mini Version
Java JDK
A:JDK (java Development Kit) is the Java Development Toolkit
B:jre (java Runtime Environment) is the Java Runtime Environment
C:JVM (java virtual machine), java VM
D:java SE APL is the core class library for Java systems (including network, io,gui, etc.)
Java language Programming Considerations:
1. Case sensitive, Be aware of the size
2. After each code is written, the following semicolon ends with the word ""
3. In the code, the appearance of parentheses is generally paired
Knowledge Points: 1. Java Project directory structure
SRC directory: Storing source code in project
The jar package for the Java Runtime Environment of the JRE System Library
2. New Original file
The new selection class in the SRC directory will generate the. Java original file
Running programs in 3.myeclipse
In the code area----> right---->run As---->java Application
After the program runs, the output is displayed in the console (console)
Using escape characters
Escape character
\ n Moves the cursor to the first pane of the next line
\ t moves the cursor to the next horizontal tab position
Comments:
A: Single-line comment with//start, mainly to explain the single line of code or variable, note content will not be compiled
B: Multiline comments to/* Comment Contents */start Multiline comments You can annotate multiple lines of code at once
C: Document comments to/** Comments * * Description of Class classes is also possible to describe the method, and the comment content generates information about the API documentation
The need for coding specifications:
A: Basic specification
B: Specialization
Java Coding specification:
1. Class names are decorated with public
2. Write only one statement in a row
Use and location of 3.{}
4. Code Indentation
5.ctrl+shift+f shortcut key typesetting,
To develop Java program steps using Myeclipse:
1. Create a Java project----->2. Create and write Java source programs------>3. compiling Java source-------->4. running Java programs
Initial knowledge of the Java language