Computer Science, asked by anuharsh, 24 days ago

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

Answers

Answered by ssk305805
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 Anonymous
25

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

Similar questions