Java - Java.lang Class Questions and Answers
Practice ModeShowing 10 of 24 questions
Q21
Which class is used for dynamic string manipulation?
Answer: Option D
Explanation: StringBuilder allows mutable sequence of characters
Q22
What does the instanceof operator check?
Answer: Option A
Explanation: instanceof checks if object is instance of specific class/interface
Q23
Which package contains the Object class?
Answer: Option A
Explanation: Object class is in java.lang package
Q24
What is the purpose of the Class class?
Answer: Option A
Explanation: Class objects represent classes and interfaces in running Java application