Originally posted by Desai Sandeep:
[B]Try this code snipplet and let me know you comments on it :
Now run Sub by using java Sub in the DOS prompt.What do you think should happen?
SCJP2,OCSD(Oracle JDeveloper), OCED(Oracle Internet Platform)[/B]
1.The "private static void main(String args)" in Super class will be inherited by the Sub class ,just like any other method....but,it will only be executed or in other words be considered as the entry point by the JVM if the derived class has no main method.