whst is encapsulation?when u encpsulate actually while
devoloping code?
Answers were Sorted based on User's Feedback
Answer / rajmohan
The Wrapping up of Data and functions into a single unit is
Called Encapsulation.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / pardhu
The binding up of data & code into a single unit is called
as ENCAPSULATION
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / a.jyotsna
Encapsulation is the mechanism that binds together code and
the data it manipulates,
and keeps both safe from outside interference and misuse
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / dsr
Encapsulation is a mechanisum,thet binds together data and
code. for example:Bean
In bean, all the variables are private. we can't access
that variables with the help of class object.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / jag bhushan
Encapsulation means wrapping of data and the accessing
methods in one unit and hiding the data from outside world.
the data can be accessed only by using getter/setter method
so that no one can set a wrong value for a vriable. like
weight can not be less than zero. so if anyone want to set
the weight, it have to set only be using getter/setter.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dileep
hide the date of the class from outside environment and
providing the only necessary data and clubbing both code
and data togather.................
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / dhawal
Encapsulation is process of hiding data
for example if access specifier we are using for accessing
class is private then only that class object can access the
methods and variables in that class
Is This Answer Correct ? | 0 Yes | 1 No |
Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection.
What is exception propagation?
What is string variable?
Is java pure object oriented or not? if yes, give the valid reason.
13 Answers Emphasis, NIIT, Syntel, Wipro,
What is java objectoutputstream?
How does enum work in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What do you understand by the term wrapper classes?
how can u handle run time exception in java? explain with brief explanation with examples?
What are the methods available in a class?
How many boolean functions are there?
What is an eror in java?