InterviewSolution
Saved Bookmarks
| 1. |
What is used to get class name in reflection?(a) getClass().getName()(b) getClass().getFields()(c) getClass().getDeclaredFields()(d) new getClass() |
|
Answer» Right answer is (a) getClass().getName() Explanation: getClass().getName() is used to get a class name from object in reflection. |
|