What is the difference between Integer and int?

Answer Posted / maninder sharma

Integer is a class defined in the java.lang package,where
as int is a primitive data type.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is core java important?

575


What is a singleton class? Give a practical example of its usage.

591


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

531


How to provide security in java

1805


What is primitive data type in java?

543






Can a main method be declared final?

586


What is the difference between JDK and JVM?

633


How do you convert bytes to character in java?

533


Explain about automatic type conversion in java?

568


What does += mean coding?

513


Which package is used for pattern matching with regular expressions?

645


Why we use multi threading instead of multiprocessing?

575


Why is singleton instance static?

504


How to instantiate static nested classes in java?

565


What is java beans?

574