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...


can any one tell me what is advantage of encapsulation

Answers were Sorted based on User's Feedback



can any one tell me what is advantage of encapsulation..

Answer / shalini

any programming lang. constitutes of two parts
1. logics 2. data
out of the above two, data is more important coz logics
lost can be rewritten but data once lost can never be
retrieved, hence data is more imp, but in the languages
like C and C++, there is a high chance of loosing the data
coz of the global variable concept, there is a very high
insecurity coz of global variables. So in order to overcum
the disadvantage of global var, encapsulation was
introduced, coz encapsulation eliminates the concepts of
global var, and the entire data is encapsulated at one
place, what u call it as class...hence encapsulation forms
the basis for OOPS concept

Is This Answer Correct ?    3 Yes 2 No

can any one tell me what is advantage of encapsulation..

Answer / phanindra

The Advantage of Encapsulation is we can achieve
Security,Durabilty and Maintainability.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

Implement a stack with push (), pop() and min() in O(1) time.

0 Answers   Amazon,


What is an object’s lock and which object’s have locks?

0 Answers  


Can a final method be overloaded?

0 Answers  


How to create a thread in java?

0 Answers  


What is javac used for?

0 Answers  


what is difference betwenn Access Specifier and Access Modifier ????

2 Answers  


What is array list in java?

0 Answers  


What is the difference between hashset and treeset in java?

0 Answers  


Integer.parse Int(bf.readLine(System.out.println("enter value for n["+m+"]:"))); can it run under this

1 Answers  


what are the disadvantages of indexes in oracle?

0 Answers   3i Infotech, Wells Fargo,


What are the two ways of implementing multi-threading in java?

1 Answers  


What does jenkins do?

0 Answers  


Categories