How OOPS concept is achieved in Java?

Answers were Sorted based on User's Feedback



How OOPS concept is achieved in Java?..

Answer / kk

Encapsulation,Inheritance,Polymorphism are OOPS principles.

In Java, these OOPS principles are achieved as follows:

Encapsulation & data hiding is achieved thru access modifiers

Inheritance is achieved thru Interfaces

Polymorphism is achieved thru overloading of methods

Is This Answer Correct ?    43 Yes 11 No

How OOPS concept is achieved in Java?..

Answer / james

1) Encapsulation:- is achieved through
classes.(Binding/Storing data and methods as a single unit )
2) Abstraction:-it is achieved through private, protected,
public, default keywords.
3)Inheritance through interfaces.
4)polymorphism is achieved through method overloading and
constructor overloading.
5)Message Passing -through objects calling

Is This Answer Correct ?    30 Yes 6 No

How OOPS concept is achieved in Java?..

Answer / niranjanravi

by polymorphism,inheritance,abstraction,encapsulation

Is This Answer Correct ?    20 Yes 8 No

How OOPS concept is achieved in Java?..

Answer / ranjan

Encapsulation which is achieved by making classes.

Inheritance which is achieved by extending class and implementing interfaces.

polymorphism is achieved by function overriding and function overloading. Operator overloading is not allowed in java although implicitly string class uses + operator..


note : Abstraction is nothing its just showing functionality and hiding complexity

Is This Answer Correct ?    7 Yes 2 No

How OOPS concept is achieved in Java?..

Answer / rahul

Thru java encapsulation, inheritence, polymorphism.

Is This Answer Correct ?    1 Yes 5 No

How OOPS concept is achieved in Java?..

Answer / abhiram patil

1)using Classes & Interfaces

Is This Answer Correct ?    5 Yes 17 No

Post New Answer

More Core Java Interview Questions

What are the methods to rectify ambiguities in the interfaces in JAVA?

0 Answers   CGI,


Why inputstreamreader is used in java?

0 Answers  


What is protected access modifier?

0 Answers  


Can we force garbage collector to run ?

0 Answers   B-Ways TecnoSoft,


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

0 Answers  






What is thread?

7 Answers   BMC, Virtusa,


solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..

2 Answers  


How can you generate random numbers in java?

0 Answers  


what is the difference between Java Command Line and C command Line?

2 Answers  


What is the difference between stored procedure & function?

0 Answers  


Can you have a constructor in abstract class?

18 Answers   HCL,


Is null a value?

0 Answers  


Categories