Home »
MCQs »
Java MCQs
Encapsulation is ___
52. Encapsulation is ___.
- Wrapping up of data and related functions into a single entity
- Creating special methods
- Creating special data structure
- All of these
Answer: A) Wrapping up of data and related functions into a single entity
Explanation:
In Java programming language, the encapsulation is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. It is a object-oriented programming concept.