The exciting moment finally arrived, not I like Java, is I know that I will always have a day to meet him.
In accordance with the practice of all programming languages, the beginning is still the world famous saying:
Public class Myfirstjavaprogram { // Create a class public static named Myfirstjavaprogram first void Main (String []args) {/// fixed-format program Portal virtual machine found this portal before executing the inside program System.out.println ("Hello World "); // This is the program to be executed. The system is the class out is the object println is the method of the word is the meaning of Java
Yes, it was the "Hello World" that shocked the Chinese and foreign.
From this simple code, we have seen the true meaning of Java, which is different from other languages, and few languages can see the true meaning of the language from Hello World!
The most basic concept of Java is also the core concept of its classes, objects, methods and the execution of the final virtual machine!
To say the truth I do not like this code, imagine Python "Hello World", a word on it, and Java to wordy so a lot!
print("Hello World")
How cool and exciting!
No way, the work needs to use Java, no matter how much. Today this article is used as the beginning of Java learning, we will open the exciting chapter!
The beginning of Java