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
how to prepare for IT Officers Interview in Banks
What are peerless components?
What is string english?
What is the full form of jpeg?
Which software is used for java programming?
Can I extend singleton class in java?
What is the map interface in java programming?
What are disadvantages of java?
Explain the difference between an Interface and an Abstract class?
What is a wrapper method?
What is use of functional interface in java 8? Explain
How to restrict a member of a class from inheriting by its sub classes?
What is the difference between static binding and dynamic binding?
When parseint method can be used?
How do you reverse a string in java?