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


Please Help Members By Posting Answers For Below Questions

Is empty string in java?

842


Does windows 10 need java?

813


Define an applet in java?

855


What is double checked locking in singleton?

832


What is ‘has a’’ relationship in java?

963


How do you override a method in java?

765


Can constructor be protected in java?

739


What is thread pool in java with example?

753


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

740


What is the syntax and characteristics of a lambda expression? Explain

817


how come we know the object is no more used in the class?

6010


What is instance means in java?

814


Difference between concurrent hashmap and hashtable and collections

816


Why is the type for real numbers called double?

745


Explain the difference between throw and throws in java?

787