public class Test
{
private static void main(String args[])
{
System.out.println(" Hello World..");
}
}
This code compiles fine on any j2sdk using the javac command, but this
code will never be interpreted correctly by any of the standard JVM (
one provided by sun )
The only case when the compiled code (Test.java) can run is when you are
running some other JVM (like kaffe and lot more like that ) To find out
which JVM you are running see the results of "java -version"
So in the last --- the motto of the whole story.. stick to the standards