Multiple choice technology web technology

Which one does not extend java.lang.Number

  1. Integer

  2. Boolean

  3. Character

  4. Long

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

In Java, the Number class is the superclass for numeric wrapper classes: Integer, Long, Float, Double, Short, Byte. Boolean and Character are wrapper classes that do NOT extend Number - they have their own separate hierarchy. This is why both B and C are correct answers.