Structure of Java program

Structure of Java program //comments Package Statements import Statements class<Class Name>{ variables methods Public static void main(String[]args){ Statements } } Rules: Package Statement: Package Stmt is an optional Statement.The PAckage stmt must be the first executable Statement in a java program.The package statement can we specified at most one time. Import Statement: In Java if […]