What is the difference between Integer and int?
Answer Posted / janet
Integer is a class defined in the java.lang package,where
as int is a primitive data tyep defined in the java
language itself.Java doesn't automatically convert from one
to the other.
Integer can be used as an argument for a method that
requires an object,where as int can be used for
calculations.
| Is This Answer Correct ? | 59 Yes | 9 No |
Post New Answer View All Answers
What is keyword in oop?
Why is logger singleton?
Is there a way to increase the size of an array after its declaration?
What are the benefits of java?
What is difference between float and double?
What is comparable and comparator interface? List their differences
Can a class be final?
What are the differences between throw and throws?
Can we split string with in java?
What is class level lock ?
What is a nested list?
Why we use set in java?
What are the differences between wait() and sleep()?
What is predicate in java?
What do you mean by singleton class in java?