What are concepts of OOPS and how are they implemented in
Java?

Answers were Sorted based on User's Feedback



What are concepts of OOPS and how are they implemented in Java?..

Answer / tarangini

oops concepts are Encapsulation, inheritance, abstractio
and polymorphism.

Encapsulation: Buildingup of the data and methods as a
single unit is called encapsulation. It isolates the
members of one class from the members of another class, so
we can declare same variable in both the classes.

best example for encapsulation is: A Class


Inheritance: Producing the new classes from already
existing class is called inheritance. The newly produced
class contains the features of old class and it has its own
features.

the use of inheritance is reusability.

Abstraction: Hiding unnecessary data from the user is
called Abstraction.

Polymorphism: Poly means many. Morphism means forms.
If same object perfrom different tasks is called
polymorphism.

Is This Answer Correct ?    15 Yes 0 No

What are concepts of OOPS and how are they implemented in Java?..

Answer / ravikiran(aptech mumbai)

abstartcion
inheritence
polymorhism
encapsulation

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

diff. b/w JAVA and javascript...

3 Answers   NIIT,


How can I debug the Java security exceptions and AccessControlExceptions?

0 Answers   IBM,


what is diff bet iterator and enumeration?

4 Answers  


What are the rules for variable declaration?

0 Answers  


Explain the pointers in Java?

0 Answers   Aspire,






What are java packages? What's the significance of packages?

0 Answers  


what is an object and how do you allocate memory to it?

6 Answers   Anshinsoft, Wipro,


Explain about narrowing conversion in java?

0 Answers  


How is Garbage collection done in Java?

3 Answers   T3 Softwares,


whats the life cycle of jsp

2 Answers   Satyam,


How do you compare two objects?

0 Answers  


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

0 Answers  


Categories