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 concept of multithreading?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is finalize()?
How are java objects passed to a method and what are native methods?
How can you read content from file in java?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What class allows you to read objects directly from a stream in java programming?
How do you remove an object from an arraylist in java?
What is difference between == and === in js?
What is the difference between overriding and overloading in OOPS.
Can we define a package statement after the import statement in java?
Difference between final and effectively final ? Why is effectively final even required ?
What are the types of sockets in java?
What interface is extended by awt event listeners?
What is the difference between @before and @beforeclass annotation?