Computer Science, asked by zaara3005, 5 months ago

what is a basic format of a java program? explain with an example​

Answers

Answered by RealSweetie
0

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 upadhyaynishtha05
0

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