The first Java program for basic Java learning

The first Java program for basic Java learning

public class first{
	public static void main(String arg[]){
	System.out.println("first code");
	}
}

Analysis
1. Remember, a source file can contain multiple classes, but there can be only one Public class, and the class name of the Public class must be the same as the file name.
2. main () is the entrance of the main program
3. Java is case sensitive
4. Among them, public is the access level modifier
5. class: define the class + {} class body

Feelings:
1. Realize the significance of learning C language in college, and can give a good reference for learning other programming languages.
2. The revolution has just begun.

Published 6 original articles · praised 3 · visits 200

Guess you like

Origin blog.csdn.net/weixin_43855187/article/details/104130172