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 / chaitali
No,we cannot access private data outside of class in java.
There is only compile time checking and no runtime check in
java because Java supports concepts like Polymorphism and
reflection where on runtime certain decisions are taken
| Is This Answer Correct ? | 14 Yes | 14 No |
Post New Answer View All Answers
What is Applet Stub Interface ?
What are abstract methods in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
How do I write a self declaration?
What are structs in java?
Can we make main() thread as daemon?
What are the super most classes for all the streams?
Why java is a platform independent? Explain
What is meant by collection in java?
What are the supported platforms by java programming language?
What is the difference between length and length() method in java?
Is string is a data type?
How do you generate random numbers in java?
Is java programming easy?
What are daemon Threads in java?