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

take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1529


Is string is a class in java?

521


what are the high-level thread states? : Java thread

556


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

595


What are daemon Threads in java?

608






What is the driver class?

565


What does it mean that a class or member is final?

558


Which eclipse is best for java?

520


Difference between notify() method and notifyall() method in java?

546


What is the difference between jfc & wfc?

592


What are the advantages of compiled language?

575


What is the nested interface?

593


Can you instantiate the math class in Java?

605


Why is boolean important?

588


Explain the importance of finally block in java?

568