Qus : Following concept can be used for encapsulation in java programs
Qusजावा प्रोग्राम में एनकैप्सुलेशन के लिए निम्नलिखित अवधारणा का उपयोग किया जा सकता है
A. Wrapping data fields with methods B. Hiding data and internal methods using access modifiers in a class
C. Using Interfaces D. All of the above
Solution
D. All of the above
Explanation
Encapsulation means, hiding the complexities in java programs. All options above are used to implement encapsulation in java object oriented programming.