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   To Refer this Site to Your Friends   Click Here
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
Difference between Superclass and Subclass?
 Question Submitted By :: Aparna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Difference between Superclass and Subclass?
Answer
# 1
A subclass inherits all the properties of a Super class.
A Subclass can access all the methods, variables of super
class and not vice versa.
A Subclass extends a Super class.
 
Is This Answer Correct ?    6 Yes 2 No
Sathya
 
  Re: Difference between Superclass and Subclass?
Answer
# 2
A super class is a class that is inherited where as sub 
class is a class that does the inheriting.
 
Is This Answer Correct ?    4 Yes 0 No
Janet
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Explain about vector, dictionary,hash table, property classes? Patni1
what is the difference between equals method and == Professional-Access11
why is multiple inheritance not allowed in java? Elementus-Technologies5
why interaction with server using javascript is difficult  1
what are depricated methods in threads and explain the lifecycle methods  5
Different types of modifiers? RoboCom3
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet? Systematix1
What is CardLayout? Infosys1
What is the functionality of Webserver?  2
what are the new features available in java 1.5 version? Motorola2
can we add two numbers without using arthematic operators? if possible how?  2
write a progam hashmap & hashtable? IBM2
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.  1
Can we declare an anonymous class as both extending a class and implementing an interface? Wipro7
question on Thread synchronization Huawei1
Hi Friends, can u give code to convert ArrayList to HashMap and HashMap to ArrayList.  1
is memory to the abstract class allocated ..or objects not instantiated TCS4
What modifiers are used with an inner class which is a member of an outerclass?  1
what is difference between prepare stetement and callable starement with example? CMC1
What is static and a non-static inner class?  3
 
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