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
what is the difference between thread and runnable types? : Java thread
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is instance example?
What package is math in java?
What is the primitive type byte?
How do you convert boolean to boolean?
How does split work in java?
Will set allow duplicates in java?
Explain about the select method with an example?
Can you explain the usages of class.forname()?
how to create constants in java?
What is bytecode in java ?
What are controls and their different types in awt?
What are annotations in java?