What is the basic format of a java program? explain with sn example
Answers
Answered by
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.
Answered by
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
English,
5 months ago
Hindi,
5 months ago
World Languages,
5 months ago
Physics,
11 months ago
English,
11 months ago
Physics,
1 year ago
Computer Science,
1 year ago