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 anti pattern in programming?

507


Can you give few examples of final classes defined in java api?

569


What is getclass () getname () in java?

683


Compare overloading and overriding?

563


What is difference between public static and void?

494






What is meant by polymorphism?

547


Explain about exception propagation?

592


What is set string?

607


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

604


Explain the selection sort algorithm?

654


Explain notifyall() method of object class ?

674


What is a copy constructor in java?

588


What is difference between fail-fast and fail-safe?

595


What is a instance variable?

592


What is the primitive type short?

587