Can we access private data outside of the class directly in
java programming language? Why There is no runtime checking
in java, which leads to access the private data directly
outside of a class?

Answer Posted / foobar

possible using reflection

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the definition of tree ?

583


what is collatration?

2735


What is Java Package and which package is imported by default?

589


Can a constructor be private and how are this() and super() method used with constructor?

518


What is the difference between static (class) method and instance method?

566






Tell me about your ability to work under pressure

1763


What is java console application?

554


What is a lock or purpose of locks in java?

581


What is the difference between path and classpath variables?

518


What is a method vs function?

545


Why do we need hashmap in java?

551


What does || mean in code?

536


Why char array is preferred over string for storing password?

578


What is meant by nested loop?

536


what is the difference between thread and runnable types? : Java thread

540