What are concepts of OOPS and how are they implemented in
Java?
Answers were Sorted based on User's Feedback
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 |
Answer / ravikiran(aptech mumbai)
abstartcion
inheritence
polymorhism
encapsulation
| Is This Answer Correct ? | 2 Yes | 1 No |
What does flag mean in java?
When we can access the static data member without creating the object what is the need of the object in java.
5 Answers Airhub, ssinformatics,
What is the default value of the local variables?
Why char array is favored over string for the storage of passwords?
Can interface be private in java?
How do you identify if jvm is 32-bit or 64-bit from java program?
When do we use synchronized blocks and advantages of using synchronized blocks?
What is function overriding and overloading in java?
What is the difference between Checked and Unchecked exception? Give some examples
What is java in layman terms?
What are the features of java?
What do you mean by aggregation?