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  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 ?    3 Yes 0 No
Pandu
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Which of the following can be referenced by a variable? A. The instance variables of a class only B. The methods of a class only C. The instance variables and methods of a class  2
How to synchonise HashMap IBM3
Which is the best way to use for String concatenation in Java? HCL5
what is the difference between HashMap And HashTable? Hexaware3
what is difference betwwen hashmap and hashtable ? Fidelity6
how to handled exceptions & erros in ejb? Satyam1
What are the common problems you have faced while implementing Java?  1
Explain about Superclass and Subclass?  4
can u override the start() method of Thread class  4
What do you mean by Remote procedure call?  2
what is the difference between statis block and static variable  5
what is diff bet iterator and enumeration?  2
Have you used any version control ? if so explain about it?  1
what is overloading and overriding with example? CMC1
How will you override default serialization mechanism in java  1
Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target  3
Life Cycle of Thread IBM3
Why all programming languages have main as a execution starting point?  2
Explain, why the constructor is required in implemented class?  2
what is jdk1.5 features? Virtusa2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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