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 a conditional statement explain with example?

784


What does @override mean?

817


What is the difference between compile-time polymorphism and runtime polymorphism?

794


Can I declare a class as private?

847


Is map sorted in java?

839


How do you represent a space in regex java?

758


How do you create a method in java?

765


What are meta-annotations?

749


What is a flag and how does it work?

768


Explain the use of volatile field modifier?

867


Can we define static methods inside interface?

753


Why singleton pattern is better than creating singleton class with static instance?

813


What is the difference between size and length in java?

757


What is the purpose of static methods and static variables?

786


Write a function to print Fibonacci series and Tribonacci series?

984