How OOPS concept is achieved in Java?
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between equals() and?
What is finalize()? Is finalize() similar to a destructor?
What is the flag in java?
Garbage collection in java?
What are the different types of constructor?
Can an interface implement another interface?
What is a protected method?
How do you compare arrays in java?
Can we have a method name same as class name in java?
What is java and why do we need it? Explain
Write a program to calculate factorial in java?
What is the purpose of a volatile variable?
Can we make a constructor final?
What does system out println () do?
What is a method in coding?