Java program basic structure

Original link: https://www.lifengdi.com/archives/course/java/3906

Let’s first analyze a complete Java program, what is its basic structure: /** * Comments that can be used to automatically create documents */ public class Hello { public static void main(String[] args) { // Output to the screen Text: System.out.println(“Hello, world!”); /* Multi-line comments start comment content Comment end */ } } // end of class definition Because Java is an object-oriented language, the basic unit of a program is class , class is a keyword, the c […] defined here

This article is reproduced from: https://www.lifengdi.com/archives/course/java/3906
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment