Java Summary First phase

Source: Internet
Author: User

Magical small Yangyangyang return again, we must think of me ~ Oh, thank you, thank you, thank you for your applause, thank You,thank [email protected]

The first chapter:

Here's a brief introduction to Java:

Java technology can be used in almost all types and sizes of devices, from small computers to computer chips, cellular phones, to supercomputers, ubiquitous.

Java applications are divided into two typical types: (1) desktop programs installed and running on this computer

(2) Internet-based applications accessed through the browser

Program: A combination of ORDERED commands written to allow a computer to perform certain operations or solve a problem.

(Java can also make 3D and three-dimensional effects of applications)

The main () method, which is essential in Java, shows the following main () method:

public static void Main (string[] args)

How does the main () method work?

A: Just as the size of the house, how many rooms have to enter from the door. The same is true of the program, which also needs to be executed from a fixed location called the "entrance" at the entrance of the program. The Main () method is the entrance to the Java program, the starting point for all Java applications, and without the main () method, the computer does not know where to start executing the program.   

!! a program has only one main () method

The main () method uses the Public,static,void adornment. They are all necessary, and the order cannot be changed, the middle is separated by a space, the parentheses behind main () and the contents of which "string[" args "are necessary."

Now that you're writing a program, there's definitely no comment, and with annotations you can get a clearer idea of what each layer of code means.

Comments in Java begin with "//" and the text after "//" in each line is considered a comment

Multiline comments start with "/*" and End with "*/" and the contents between "/*" and "* *" are treated as comments

The first chapter is nothing to say, just take everyone to understand the next java. The next section will bring you more articles about Java. If you think I write the article can bring you a harvest, then I also hope you can leave footprints, and later I will be more efforts to bring more knowledge to everyone. Look forward to my next issue, everybody~.

Java Summary First phase

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.