can any one tell me what is advantage of encapsulation
Answers were Sorted based on User's Feedback
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 |
Answer / phanindra
The Advantage of Encapsulation is we can achieve
Security,Durabilty and Maintainability.
| Is This Answer Correct ? | 2 Yes | 1 No |
whats the life cycle of jsp
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
Name and explain the types of ways which are used to pass arguments in any function in java.
What is the difference between compiler and jvm?
Is there any sort function in java?
What is purpose of keyword void?
Write a program to reverse a number in java?
In what circumstances, compiler will supply a default constructor for a class?
Explain the use of javap tool.
Which is bigger float or double java?
Why do we use return statement?
What is class forname used for?