Home »
MCQs »
Scala MCQs
The getClass() method is used to –
28. The getClass() method is used to -
- Extract the class of the given number
- Extract the value of the variable
- Extract the memory location of the variable
- All of the Above
Answer: A) Extract the class of the given number
Explanation:
The getClass() method is used to return the class of the given number.