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
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is the importance of static variable?
Can You Have Virtual Functions In Java?
What is linked hashmap and its features?
How do you sort arraylist in descending order?
If a variable is declared as private, where may the variable be accessed?
Does java map allow duplicates?
What are abstract classes and anonymous classes?
What are some characteristics of interference class?
How hashmap works in java?
What is balanced tree in java?
What does business logic mean?
Explain the different forms of polymorphism?
What does this () mean in java?
In a container there are 5 components. I want to display the all the components names, how will you do that one?