Why is private variable used in Java Programming ?

A Chance of reducing used in Java Programminers
B Data loss prevention
C polymorphhism
D All of the above

Correct Answer: All of the above

Making members private in Java is one of the best coding practice, private method are well encapsulated in class. IDE like Netbeans and Eclipse use this information and automatically check whether private methods are used inside the class or not and can display relevant warning to improve code quality.
Bissoy MCQ

Related Questions

What programming language(s) or scripting language(s) does Java Server Pages (JSP) support?
Who owns the Java programming language?
When comparing java.io.BufferedWriter and java.io.FileWriter, which capability exist as a method in only one of two ?

Next steps