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 is the ==?
Explain the term virtual machine?
In the below example, how many string objects are created?
What is the platform?
What is the maximum size of a string in java?
Can you call a method in a method?
What is an eror in java?
How would you format a date in java? I.e. In the ddmmyyy format?
According to java operator precedence, which operator is considered to be with highest precedence?
Explain the advantages of packages in java?
What will be the initial value of an object reference which is defined as an instance variable?
what is meant wrapper classes?
Can static method access instance variables ?
Which is easier netbeans or eclipse?
What is an object's lock and which object's have locks in java programming?