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


Please Help Members By Posting Answers For Below Questions

What is the properties class in java programming?

635


Why object class is super class for every class in java?

671


What is java jit compilers?

644


What is java lang string?

650


Which is best ide for java?

629






What is connection class in java?

594


What is a blocking method in Java?

706


What is the name of the java compiler?

628


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

667


What is the difference between procedural and object-oriented programs?

613


Can we execute a program without main?

624


What are the features of junit?

705


Name few "optional" classes introduced with java 8 ?

737


What is the final keyword?

640


What do you mean by checked exceptions?

621