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

how we can make a write-only class in java?

564


Why is it called boolean?

529


What is api data?

551


How can we make a class virtual?

649


What are the steps involved to write rmi based programs?

575






What’s the difference between the methods sleep() and wait()?

548


How many days will it take to learn java?

523


Why is inheritance used in java?

618


How to compare two strings in java program?

678


What is the loop in java?

583


What are dot operator queries?

635


Difference between java and javascript

588


Can you run java program without main method?

551


Why is multithreading important?

505


Difference between method overloading and overriding.

584