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

What is bufferedreader in java?

0 Answers  


If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?

5 Answers  


How to prevent to create multiple objects of a java class?

3 Answers   ASD Lab, TCS,


Does java set allow duplicates?

0 Answers  


When should we create our own custom exception classes?

0 Answers  






How the elements are organized in CardLayout?

5 Answers  


What is meant by method?

0 Answers  


Is null keyword in java?

0 Answers  


How are the elements of a gridbaglayout organized in java programming?

0 Answers  


What is integer size in java?

0 Answers  


What do you mean by mnemonics?

0 Answers  


What is an abstract method in java programming?

0 Answers  


Categories