OOPortal OOPortal


Structured Programming   «Prev 

Java HelloWorld program

Code Skeleton
A class declaration consists of the keyword class followed by the name of the class and a set of curly brackets "()" containing any variables and methods of the class.

Java Main method
The main() method is the starting point for the program. All Java programs must have a main() method.