Computer Science, asked by vampirevenem301, 11 months ago

What is the basic format of a java program? explain with sn example

Answers

Answered by Anonymous
4

Explanation:

Java is an object-oriented language, which means that it has constructs to represent objects from the real world. Each Java program has at least one class that knows how to do certain things or how to represent some type of object. For example, the simplest class, HelloWorld,knows how to greet the world.

<marquee>♥mark as brainliest..✌♥</marquee>

Answered by AaravpandeyAV1306
4

Explanation:

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.

if you satisfied with my answer please mark me as a brainlist answer an follow me.

Similar questions