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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
whats is inheritance?
 Question Submitted By :: Ravi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: whats is inheritance?
Answer
# 1
Inheritance is the process of acquiring the details from 
the derived classes.
 
Is This Answer Correct ?    0 Yes 1 No
Kalpana
 
  Re: whats is inheritance?
Answer
# 2
Inheritance is the process of acquiring the properties from 
super class to sub class.
 
Is This Answer Correct ?    0 Yes 0 No
Reddy
 
 
 
  Re: whats is inheritance?
Answer
# 3
Inheritance is the process of acquiring the properties of
one class to another class.
 
Is This Answer Correct ?    0 Yes 0 No
Shalini
 
  Re: whats is inheritance?
Answer
# 4
Inheritence is the process of creating a new class from 
an existing class. The new class may access the all the 
data members in the parent class. The new class is called 
sub class. The existing class is called super class or base 
class..
 
Is This Answer Correct ?    0 Yes 0 No
Raja
 
  Re: whats is inheritance?
Answer
# 5
inheritance is a process one object acquires the property 
of another object.
 
Is This Answer Correct ?    0 Yes 0 No
Neelam
 
  Re: whats is inheritance?
Answer
# 6
Inheriting(getting,taking into,Proccessing) the members of a
class into another class without rewritting them is called
Inheritance.
 
Is This Answer Correct ?    0 Yes 0 No
Mallesh
 
  Re: whats is inheritance?
Answer
# 7
Acquiring the properties of one class from another class in 
inheritance.Here the class which is being acquired is 
called as super class and the class which does acquiring is 
called as sub class.
 
Is This Answer Correct ?    0 Yes 0 No
Karunakaran
 
  Re: whats is inheritance?
Answer
# 8
inheritance means producing new class from an existing class.

 ex: public class Student extends Teatcher{}
 
Is This Answer Correct ?    0 Yes 0 No
Janardhan
 
  Re: whats is inheritance?
Answer
# 9
Inherritance is an concept of Reusability. 
We can access the all the properties of the base class from 
the sub class
 
Is This Answer Correct ?    0 Yes 0 No
Sathish
 
  Re: whats is inheritance?
Answer
# 10
inheritance is the property of inherting the properties of 
super class in it's sub class
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 
  Re: whats is inheritance?
Answer
# 11
Inheritance is the process of acquiring one object to 
another object.
 
Is This Answer Correct ?    0 Yes 0 No
Vasanthi
 
  Re: whats is inheritance?
Answer
# 12
inheritance , name only mentions here that inherit.Listen inherit means it can be occupied by another one like father properties go to his sons, observer some automobiles you can get inheritance meaning there only ,like hero honda passion and passion plus , so , there are a lot of instance available which are related to inheritance.
So, inheritance is nothing but ,in programming language, occupying the properties of one class by another class.
for instance 
public class Idemo{
public staic void m(){}
public void m1(){}
}
public class Idemo1 extends Idemo
{
public static void main(String args[]){
Idemo1 i=new Idemo1();
i.m();
i.m1();
}
}
but here it can not be called as inheritance 
interface I{void fun1()}
interface I1
{void fun();}
interface I2 extends I,I1
{}
 
Is This Answer Correct ?    0 Yes 0 No
Priyabrata Patro
 
  Re: whats is inheritance?
Answer
# 13
Inheritance is a Reusable of the existing code.

There are two types of Inheritance implementation
Inheritance and interface Inheritance.

Implementation inheritance promotes reusability but improper
use of class inheritance can cause programming nightmares by
breaking encapsulation and making future changes a problem.
With implementation inheritance, the subclass becomes
tightly coupled with the superclass. This will make the
design fragile because if you want to change the superclass,
you must know all the details of the subclasses to avoid
breaking them. So when using implementation inheritance,
make sure that the subclasses depend only on the behavior of
the superclass, not on
the actual implementation.

Interface inheritance promotes the design concept of program
to interfaces not to implementations. This also reduces the
coupling or implementation dependencies between systems. In
Java, you can implement any number of interfaces. This is
more flexible than implementation inheritance because it
won’t lock you into
specific implementations which make subclasses difficult to
maintain. So care should be taken not to break the
implementing classes by modifying the interfaces.
 
Is This Answer Correct ?    0 Yes 0 No
Mukthiyar
 
  Re: whats is inheritance?
Answer
# 14
Inheritance is one of the method to inherit the properties 
of existed class to the new class.
 
Is This Answer Correct ?    0 Yes 0 No
Venkat
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Can we call the Thread.sleep in Synchyronozed block? Logica-CMG4
Why Wait and notify are kept in Object class although they are used only with Thread Class Saksoft2
what is java Tech-Mahindra1
What is the root class for all Java classes?  4
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?  6
What is meant by event handling?  1
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;  1
In what circumstances, compiler will supply a default constructor for a class?  4
garbate collector(GC)?  4
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?  2
real time example for deadlock,starvation,livelock  4
What is audio clip interface? Name few methods of it ?  1
What is the return type of readLine() when end of a file is reached?  1
What is method Overriding in the perspective of OOPS?  2
What is encapsulation? Elaborate with example? BMC1
What is the difference between static and non-static variables?  2
Can you call a private data from an inner class?  3
What are batch updates. in jdbc Corent-Technology2
What is a J2EE component? List out all the component? Adobe2
what is multithreading? Virtusa4
 
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