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 externalizable interface?
what are abstract functions?
What is proper subset?
What is math exp in java?
can I implement my own start() method? : Java thread
Is finalize() similar to a destructor?
What are decalarations?
Is it possible to override the main method?
What is diamond operator in java?
What are the major advantages of internal iteration over external iteration?
What is byte [] in java?
What's the difference between int and integer in java?
How many bytes are there?
Can the garbage collection be forced by any means?
Difference between serialization and deserialization in java?