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 array command?
What does this mean java?
Is array primitive data type in java?
what are three ways in which a thread can enter the waiting state? : Java thread
How does finally block differ from finalize() method?
How do I type unicode?
What is stringjoiner ?
Is it possible to use string in the switch case?
What do you mean by data type?
What is local class in java?
What is the base class of all classes?
What is the difference between menuitem and checkboxmenu item?
How do you download stubs from Remote place?
What is function and method in java?
What is meant by call by reference?