Computer Science, asked by sudhamudagalu, 19 days ago

explain the parts of the Java program​

Answers

Answered by prasunmishra
1

A basic java program would contain a class and a main method with some statements inside it.

Everything in java must be inside a class. The program is saved with . java extension.

The name of the file must be same as that of the class name. Here it is saved as 'HelloWorld.

Explanation:

typical structure of a Java program contains the following elements: Documentation Section. Package Declaration. Import Statements.

mark brainliest and plz follow

Answered by alphadeb731
0

Answer:

Documentation Section.

Package Declaration.

Import Statements.

Interface Section.

Class Definition.

Class Variables and Variables.

Main Method Class.

Methods and Behaviors.

Similar questions