Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Ashik Uzzaman
Director of Engineering, Twin Health, Mountain View, CA, USA
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?
-- Sandeep
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.
Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |