Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the ==?

896


Explain the term virtual machine?

1053


In the below example, how many string objects are created?

1049


What is the platform?

1008


What is the maximum size of a string in java?

1105


Can you call a method in a method?

1100


What is an eror in java?

1059


How would you format a date in java? I.e. In the ddmmyyy format?

1381


According to java operator precedence, which operator is considered to be with highest precedence?

1094


Explain the advantages of packages in java?

924


What will be the initial value of an object reference which is defined as an instance variable?

1154


what is meant wrapper classes?

1217


Can static method access instance variables ?

1143


Which is easier netbeans or eclipse?

1066


What is an object's lock and which object's have locks in java programming?

1054