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 the properties class in java programming?
Why object class is super class for every class in java?
What is java jit compilers?
What is java lang string?
Which is best ide for java?
What is connection class in java?
What is a blocking method in Java?
What is the name of the java compiler?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What is the difference between procedural and object-oriented programs?
Can we execute a program without main?
What are the features of junit?
Name few "optional" classes introduced with java 8 ?
What is the final keyword?
What do you mean by checked exceptions?