what are the oops concept in java explain with real time
examples

Answer Posted / madhu

Inheritance defining a new class by using the member of existing class..e.g main class vehicle
sub classes can extend vehicle like car,bike,auto cos car, bike ,auto are belongs to vehicle so they can extend using vehicle..

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by final class?

542


What do you mean by JVM?

566


What is meant by interface?

541


What is garbage collector?

600


What is java and their uses?

529






Is java a compiler?

546


Difference between arraylist and vector.

565


Describe different states of a thread.

558


What is a top level class in java?

505


Why is serialization required?

515


Can a class be final?

476


What is method with example?

553


Explain some best practices you would apply while using collection in java?

544


How the metacharacters are different from the ordinary characters?

538


What does split function do in java?

507