ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Does a class inherit the constructor of its super class?if 
it does, how can you hide that constructor? if it doesnot 
how can you call it from the sub class?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?
Answer
# 1
Hi ,
 constructor is never been inherited from superclass to 
subclass.
we can call the Super class constructor in Sub class
by using 
Super();
that too this stement should be first line in method.

Best Regards.
 
Is This Answer Correct ?    1 Yes 0 No
Pandu
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
can anyone explain me the concept of autoboxing?  1
Difference between Superclass and Subclass?  2
Which class should you use to obtain design information about an object  2
explain me with a code snippet about the generation and handling of null point exceptions.  1
What is the middleware?  1
garbate collector(GC)?  4
What is Marker interface in java? and what is clone? Wipro7
As a developer what steps do you take to improve the performance?  3
What is the default modifier in Interface?  2
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes.... Quinnox3
Can a class inherit the constructors of its superclass? Wipro4
How multi processing is achieved in JAVA? BMC2
What happens when a main method is declared as private? Sun-Microsystems6
Howmany number of objects we can store in an ArrayList. Is there any limit? TCS4
what us Dyna action form? Aithent-Technologies2
What is the difference between serialization and deserialization?  2
What is the use of anonymous inner classes ? HCL7
Can a for statement loop indefinitely?  3
what is web.xml?and its use? CTS5
whats is the use of final,in which situation final can be used in the application? DNS2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com