How OOPS concept is achieved in Java?
Answer Posted / 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 |
Post New Answer View All Answers
Can I overload to string method
What is the final variable?
What is implicit object in java?
What is a class in java?
If you do not want your class to be inherited by any other class. What would you do?
What is the longest unicode character?
Differentiate between class and structure.
What is difference between filereader and bufferedreader?
How do you use nextline in java?
What best practices should you follow while writing multithreaded code in java?
How to retrieve data from database in java using arraylist?
What purpose do the keywords final, finally, and finalize fulfill?
If a class is declared without any access modifiers, where can the class be accessed?
How does callback work in java?
Why set do not allow duplicates in java?