Architecture of Java Program
Posted November 25, 2011on:
- What is architecture of Java program?
While writing a java program, the above architecture need to be followed.
As the figure describes, documentation part or writing comments into program is completely optional. If you want to know, how to write comments & documentation in java? Click here
If the programmer wants to keep class in some package then only he/she will declare the package.
If we need to link any other class from some package then, we will write import statement otherwise if the classes are in same package there is no need of import statement.
Whereas class definition & program body is compulsory which will have your actual code.