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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
Explain about Superclass and Subclass?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain about Superclass and Subclass?
Answer
# 1
Super class is the class that is inherited and Subclass is 
the class that does inheriting.
 
Is This Answer Correct ?    0 Yes 0 No
Niranjanravi
 
  Re: Explain about Superclass and Subclass?
Answer
# 2
sub class is the child of super class and super class is 
the parent of sub class

sub class auto matically having all the properties of sub 
class and super class itsef, but super class having all the 
properties of super class only not the sub class properties.
 
Is This Answer Correct ?    0 Yes 0 No
Jagadeesh
 
 
 
  Re: Explain about Superclass and Subclass?
Answer
# 3
super class is the one which will declare members and
methods and will allow all the subclasses to make use of them.

sub class is the class which inherits the mebes and methods
from the super class and declares it's own members as well.
 
Is This Answer Correct ?    0 Yes 1 No
Ravikiran(aptech Mumbai)
 
  Re: Explain about Superclass and Subclass?
Answer
# 4
like above example both are right the child class have all 
the proprety of the parrent class when we requored then we 
call with child class object;
 
Is This Answer Correct ?    0 Yes 0 No
Sanjay Singh Chauhan
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What are the names of interfaces that doesn't consists of method/s ?  3
can you create interface instance ? Fidelity28
How to declare unique ArrayList ? RMSI4
If your team member writes code with lots of static variables and static methods, will it cause any side effects? KPIT1
Which containers use a FlowLayout as their default layout?  3
In what circumstances, compiler will supply a default constructor for a class?  4
what is mean by overriding in which situation we wil use? Atlas-Systems4
basic difference b/w ALL types of JDBC driver. Systematix1
what is java Tech-Mahindra1
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types TCS3
watz the difference between abstract class and interface? Which one u ill choose as a designer? Sonata1
who can we create the object of a class? in how many ways we can create it (max 5)  1
write the hierarchy of component class?  1
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set? Aricent5
how cani read a command line argument?(usingfile object).  3
Is it possible to write static method in abstract class? justyfy your answer? Hexaware3
how you will prevent inheritance is there any other way other than inheritance? Wipro4
As a developer what steps do you take to improve the performance?  3
how to compile jsp? Logica-CMG3
What is the catch or declare rule for method declarations?  1
 
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