Showing posts with label package. Show all posts
Showing posts with label package. Show all posts

Monday, February 25, 2013

Thursday, August 9, 2012

Naming a package


"Naming a Package (The Java™ Tutorials > Learning the Java Language > Packages)" ( http://bit.ly/N7Y70U )

Sunday, March 18, 2012

The Main method

A Java project many contain many packages and each package may contain many classes. There must be at least one class containing a main method.

The main method is a static method, belonging to the class, where program execution begins - it's the front door, so to speak. The main method begins the chain of events that load the program into memory, ready for use.

In the Java programming language, every application must contain a main method whose signature is:

public static void main(String[] args)


The main method can optionally take a String array as a parameter, as shown in the parenthesis.

(String[] args)