is primitive data type wrapper classes are immutable
Answers
Answered by
0
Explanation: All primitive wrapper classes (Integer, Byte, Long, Float, Double, Character, Boolean and Short) are immutable in Java, so operations like addition and subtraction create a new object and not modify the old.
Similar questions