10. What is the basic format of a Java Program Explain with an example.
Answers
Answered by
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
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
English,
4 months ago
English,
4 months ago
English,
9 months ago
Physics,
9 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago