Java beginners (Unit 7; Summary of the first six chapters), java Chapter 6

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.