Describe inheritance as applied to java?

Answer Posted / rajesh

Inheritance is the powerful mechanisam for resuabiltiy.
We can derive a class from whereever and whenever.
The resuabiltiy avoids to rewrite code and code length.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is autoboxing and unboxing?

577


What is the use of accept () method in java?

604


When is the finally clause of a try-catch-finally statement executed?

495


What is immutability in java?

600


What is a constructor, constructor overloading in java?

522






What is boolean keyword in java?

595


When will we prefer to use set and list in java and why?

546


What is boolean example?

523


What is the difference between static (class) method and instance method?

566


what is object-oriented programming in java?

582


Why do we declare a class static?

537


What is the difference between throw and throws keywords?

571


What are the 8 primitive data types in java?

545


describe synchronization in respect to multithreading? : Java thread

497


Explain 5 features introduced in jdk 1.7?

603