October 4, 2010 at 6:03 PM
Let's see how you can define the starting point in Java program.
The <b>public static void main(String args) </b> is the starting point in a Java program. JVM looks for <b>static void main(String args)</b> in Java program and then starts the execution from here.
Here is full code of HelloWorld program in Java:
public static void main(String args)
October 4, 2010 at 6:06 PM
If you are getting OutOfMemoryError error is your Java program, you should consider increasing the JVM space allocated to your program.
You can use following option while running your program.