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