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 fail fast in java?
Name and explain the types of ways which are used to pass arguments in any function in java.
When should you make a function static?
What happens when you add a double value to a string?
What is the purpose of static methods and static variables?
write a program that list all permutations of ABCDEF in which A appears before B?
What is the difference between variable declaration and variable initialization?
Explain oops concepts in detail?
What is %02d?
What is mnemonic in assembly language?
In case of inheritance what is the execution order of constructor and destructor?
What is a values collection view ?
Differentiate between class and structure.
What is the difference between iterator and enumeration ?
How is java hashmap implemented?