Structure of a Java Program
The program (or) source code written in java is divided into 5 sections. Namely, 1) Documentation section 2) Package statements 3) Import statements 4) Interface section 5) Class section Documentation Section: (optional) This section includes comments. It helps to improve the readability of the program. Comments are non-executable statements. It is a simple message which states the purpose of the program and exists only for the programmer. These comments occur not just in the beginning but anywhere in the program. Package statements: (optional) Jav...