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 |
diff. b/w JAVA and javascript...
How can I debug the Java security exceptions and AccessControlExceptions?
what is diff bet iterator and enumeration?
What are the rules for variable declaration?
Explain the pointers in Java?
What are java packages? What's the significance of packages?
what is an object and how do you allocate memory to it?
Explain about narrowing conversion in java?
How is Garbage collection done in Java?
whats the life cycle of jsp
How do you compare two objects?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?