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 are the basics of core java?
What is the static method?
What are strings in physics?
How to make a read-only class in java?
Is java call by value?
What is the difference between abstraction and encapsulation?
Explain the importance of finally over return statement?
How is the marker interface used in Java?
What is static data type in java?
What is the purpose of lambda expressions?
What is a parent class in java?
What is variable length arguments in java?
How can we break singleton in java?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Why do you canvas?