thinkinterview » interview questions
« Previous

interview Questions

next »
question What is the difference between Integer and int?
Answer Description:

a) Integer is a class defined in the java. lang package, whereas int is a primitive data type defined in the Java language itself. Java does not automatically convert from one to the other.

b) Integer can be used as an argument for a method that requires an object, whereas int can be used for calculations.


Next Queston » What is adapter class?...
What is adapter class?View full queston »

Posted in: Java(30) |