Professional Documents
Culture Documents
/** documentation /
/* comments
// comment until end of line
The signature of the main method is public static void main(String[] args)
When declaring the main method, the modifiers public and static can be in either order, but the
convention is public static.
The main method defines a single parameter, usually named args, whose type is an array of String
objects.
Object-Oriented Programming
Hiding internal data from the outside world, and accessing it only through publicly exposed methods
is known as data encapsulation.
Common behavior can be defined in a superclass and inherited into a subclass using the extends
keyword.