What is meant by data hiding in java?
Answer Posted / Abdul Mutlib Khan
Data hiding in Java refers to the mechanism of restricting direct access to object's variables (data) and providing only public methods to access those variables. It promotes encapsulation, making the code more modular and easier to maintain.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between equals() and == in java?
What is the difference between break and continue statements?
How to create a base64 decoder in java8?
Differentiate between static and non-static methods in java.
explain different ways of using thread? : Java thread
What do you mean by an interface in java?
What is a constructor overloading in java?
What is parsing in java?
What is a classloader in java?
Explain public static void main(string args[]) in java.
Is minecraft 1.15 out?
Realized?
What is java string pool?
How to sort array in descending order in java?
Write a program to find the whether a number is an Armstrong number or not?