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
Is empty string in java?
Does windows 10 need java?
Define an applet in java?
What is double checked locking in singleton?
What is ‘has a’’ relationship in java?
How do you override a method in java?
Can constructor be protected in java?
What is thread pool in java with example?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What is the syntax and characteristics of a lambda expression? Explain
how come we know the object is no more used in the class?
What is instance means in java?
Difference between concurrent hashmap and hashtable and collections
Why is the type for real numbers called double?
Explain the difference between throw and throws in java?