Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Muaz Bashara   on Oct 07 In Java Category.

  
Question Answered By: Eline Bakker   on Oct 07

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

Share: 

 

This Question has 9 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on private static void main Or get search suggestion and latest updates.


Tagged: