In this post I will explain the structure of a Java program. A Java program is a collection of one or more classes, in which, one class contains the mainmethod. Before looking at the structure of a Java program, let’s see the structure of a Java class. Structure of a Java class is as shown below: A Java class can contain the following: Package statement: A package statement is used to declare a Java class as a part of the specified package. More on declaring packages later. Package statement is optional. When we decide to write a package statement, it should
The post What is the basic structure of the java program appeared first on Coding Security.
What is the basic structure of the java program
read more
Tidak ada komentar:
Posting Komentar