1.

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

Answer»

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.



Discussion

No Comment Found