Search code examples
javasizeprimitive

Difference Max Value for primitive and primitve wrapper


I have java primitive int and its wrapper Integer ,do it mean that the int has the same Maximum value as Integer's maximum value ?


Solution

  • Yes, they are the same for int and Integer.