Explain inheritance in java?



Explain inheritance in java?..

Answer / Pradeep Singh

Inheritance in Java is a mechanism where one class acquires the properties (methods, variables) of another. The class that inherits the properties is called the subclass or derived class and the class that has its properties inherited is called the superclass or base class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can applet in different page/s communicate with each other?

1 Answers  


What is meant by anonymous class?

1 Answers  


Tell me the latest versions in java related areas?

1 Answers  


How do you create a reference in java?

1 Answers  


What happens if a constructor is declared private?

1 Answers  


what do you understand by the term string with respect to java?

1 Answers  


can you program for reverse string?

7 Answers   IBM,


what is the final keyword denotes in java?

1 Answers   IBS,


How do you detect memory leaks?

1 Answers  


What does %d do in java?

1 Answers  


What are the new features in java 8?

1 Answers  


Can we declare register variable as global?

1 Answers  


Categories