Computer Science, asked by hydraninja07, 7 months ago

explain the basic structure of java program ​

Answers

Answered by smee26
23

A Java program may contain several class definitions, classes are an essential part of any Java program. ... A class is a collection of variables and methods that operate on the fields. Every program in Java will have at least one class with the main method.

Answered by 22soubhikbiswas
10

Answer:

A Java program may contain several class definitions, classes are an essential part of any Java program. It defines the information about the user-defined classes in a program.

A class is a collection of variables and methods that operate on the fields. Every program in Java will have at least one class with the main method.

Similar questions
Physics, 7 months ago