Computer Science, asked by sathyabhaskar, 10 months ago

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

Answers

Answered by itsagainaryan
7

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 ganishaMahajan
5

Here is your answer friend..

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..

Hope it would be helpful to you..

Please mark as brainliest answer...

Similar questions