Real Time sample code for Encapsulation and Abstraction.
where to use abstract and where to use specifies like
public private.
Answer Posted / manikandan [ gtec,vellore ]
Encapsulation is used when v need to use a data with the
object access.
Abstraction is used when v need to restrict the end user to
access all process.
Is This Answer Correct ? | 1 Yes | 10 No |
Post New Answer View All Answers
What are the two basic ways in which classes that can be run as threads may be defined?
What is the java project architecture?
What is regex in java?
Why do we need data serialization?
What is definition and declaration?
Can an integer be a string?
What's the base class of all exception classes?
Explain enumeration in java?
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 are thread safe functions?
How to create packages in java?
Does anyone still use java?
Give the hierarchy of inputstream and outputstream classes.
What is thread pool? How can we create thread pool in java?
What is method reference?