1.

Which of these class allows us to get real time data about private and protected member of a class?(a) java.io(b) GetInformation(c) ReflectPermission(d) MembersPermissionThis question was posed to me in a national level competition.My question is from Core Java API Packages in division Interfaces & Packages of Java

Answer»

Correct CHOICE is (C) ReflectPermission

To elaborate: The ReflectPermission class allows reflection of private or PROTECTED members of a class. This was added after JAVA 2.0 .



Discussion

No Comment Found

Related InterviewSolutions