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
How to sort array in descending order in java?
How do you invoke a method?
Why are data types important?
What is the use of a conditional inclusion statement in Java ?
How many inner classes can a class have?
Why array is used in java?
How transient variable is different from volatile variable?
Give me some null interfaces in java?
What does business logic mean?
Write a program to check string is palindrome without using loop?
How does a for loop work java?
What is a list in java?
How can you make a class serializable in java?
What is stack explain?
What is unicode full form?