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 meant by memory leak?

622


Implement a stack with push (), pop() and min() in O(1) time.

717


Can we have two methods in a class with the same name?

667


Can a boolean be null java?

624


What is the difference between compare and compareto in java?

592






What is the use of protected in java?

625


How do you implement singleton class?

614


What are the benefits of operations?

613


Can you explain the meaning of aggregation and composition

655


Can final class have constructor?

592


Is java a compiler?

653


What purpose do the keywords final, finally, and finalize fulfill?

728


What is the meaning of variable in research?

645


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

771


Explain the pointers in Java?

689