You define the main() method yourself, in whatever class you like. When you start a
Java program, Java will look for a
public static void main(String[] args) method - that's where your program starts running, as Aditi already mentioned.
For the meaning of "static", see this tutorial page:
Understanding Instance and Class Members.