Computer Science, asked by aditi2237, 9 months ago

10. What is the basic format of a Java Program Explain with an example. ​

Answers

Answered by InFocus
3

Answer:

In Java, a class definition starts with the word "class" (possibly preceded by the word "public" or "private"), continues with the name of the class and the character "{" (a left brace or curly bracket), and ends with the character "}" (a right brace). Inside the braces are definitions of methods and variables

Answered by judhajeet180
3

Explanation:

Every Java stand-alone program requires the main method as the starting point of the program. This is an essential part of a Java program. There may be many classes in a Java program, and only one class defines the main method. Methods contain data type declaration and executable statements.

plz MARK as brainliest

Similar questions