Integer a = new Integer(100);
int ax = a;
Is the above code same as below? If yes then what is the use of intValue() method since we can directly assign value to primitive int?
Integer a = new Integer(100);
int ax = a.intValue();
Integer a = new Integer(100);
int ax = a;
Is the above code same as below? If yes then what is the use of intValue() method since we can directly assign value to primitive int?
Integer a = new Integer(100);
int ax = a.intValue();