Category: React • Beginner
Published on 22 Feb 2026
Explanation
#white-int is a primitive data type in Java #white-that stores 32-bit integer values.
Code Example
int a = 10;
Explanation
#white-Integer is a wrapper class that wraps an #white-int into an object.
Code Example
Integer b = 20;
Explanation
#white-int cannot be null, whereas Integer can #white-store null.
Code Example
Integer x = null; // int y = null; // Compilation error
Explanation
#white-Integer provides utility methods like #white-parseInt() and valueOf().
Code Example
int num = Integer.parseInt("100");
Explanation
#white-Autoboxing converts int to Integer #white-automatically.
Code Example
Integer obj = 5; // Autoboxing