August 9, 2011

JAVA Class Without Main Method

[ CoreJavaTest.java ]

public class CoreJavaTest extends MainClass {
 {
  System.out.println("Inside CoreJavaTest");
  }
}
class MainClass
 {
   public static void main(String[] args)
  {
     System.out.println("Inside Main");
  }
}

What Output Do u expect …

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.