adspace
Answer Posted / Laxmi
Encapsulation in Java is the mechanism of hiding internal implementation details (attributes or methods) of an object and exposing only the necessary public interfaces. It helps to prevent data from being accessed directly by other classes, enhances code reusability, improves modularity, and provides a strong access control mechanism.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is minecraft 1.15 out?
What is the difference between equals() and == in java?
How to sort array in descending order in java?
Explain public static void main(string args[]) in java.
Realized?
Differentiate between static and non-static methods in java.
What is parsing in java?
What is a constructor overloading in java?
What is a classloader in java?
Write a program to print count of empty strings in java 8?
What are the differences between heap and stack memory in java?
What is java string pool?
Write a program to find the whether a number is an Armstrong number or not?
What do you mean by an interface in java?
How to create a base64 decoder in java8?