The problem is related with the decleration of the main method.The JVM should match the signature of the main method aspublic static void main( String[] args ). It is mentioned everywhere thatif this signature does not match, the program will not complie. Still, thefollowing code works perfectly:-----------------------------------------------------------------class Strange{private static void main(String[] args){System.out.println("Hello Strange!");}}class Ex extends Strange{private static void main(String[] args){Strange.main( args ) ;System.out.println("Hello Ex!");}}----------------------------------------------------------------Even if I use a single class and declare a main method as private, the codecomplies and runs fine.Please post your reply at my mail address: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->