Java beginners (Unit 7; Summary of the first six chapters), java Chapter 6
Chapter 1 Summary:
1. java is an advanced programming language launched by sun (Oracle Ltd.) in 1995. java technology can be applied to almost all types and sizes of devices, computer chips, cell phones, and super computers are everywhere.
2. java has become an absolute mainstream in the current software development industry. java SE and java EE in the java field have developed into c # And. NET technology is equally divided into the world's application software development technology and platform. Therefore, some people say that they have mastered the "main pulse" of software development in java ".
3. Development on notepad
①: Compile the source program in notepad to convert the format to the file name. java; otherwise, the source program cannot be found.
②: Compile javac file name. java
③: Run java file name. java
4. java program structure
Public class Hello {// outer structure
Public static void main (String [] args) {// The internal layer structure * a program can only have one main method
}
}
5. Notes in java:
Single line comment ://
Multi-line comment :/**/
Document Note :/***/
6. java specifications:
> The class name must be public.
> Write only one line of code
> The portion enclosed by {} usually represents a certain level of the program. "{" Is generally placed at the end of the row starting with this structure,
"}" Is aligned with the first letter of the institution and occupies a single row.
> Statements or comments at a lower level should be written after several spaces are indented by statements or comments at a higher level, making the program more
Clear, increasing program readability.