📚 Practice Mode

Java Programming Fundamentals

Learn at your own pace with hints and detailed explanations

1 / 18
Multiple Choice

What is the role of encapsulation in Object Oriented Programming?

  1. It is used to hide the data from the outside view.
  2. By using encapsulation we can use the properties of the base class in the subclass.
  3. Encapsulation binds the data and code in a well defined interface.
  4. All of the above
  5. Both (1) and (3)