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 |
How do you read a char in java?
What do you mean by collectors in java 8?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
briefley expalin about the packages
what is meant by package in java?
When will we prefer to use set and list in java and why?
Is cout buffered?
Name the methods that used to get and set the text label displayed by a Buttonobject?
explain the life cycle of thread?
10 Answers CTS, NIIT, TCS,
Hi Friends, Can u give few interview questions which relates ArrayList and Hashmap. I mean how to link ArrayList and HashMap.I know this is not good way of asking questions like this , but i need
What is lazy programming?
What class allows you to read objects directly from a stream?