What is the difference between Integer and int?

Answer Posted / sumit

int is a premitive data type and integer is a class

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you bind variables?

527


What is the public method modifier?

544


Why is the type for real numbers called double?

545


Give some features of interface?

586


What is a local block?

638






Differentiate between postfix and prefix operators in java.

645


Can we have multiple classes in single file ?

607


What is the purpose of garbage collection in java?

653


What is serial version uid and its importance in java?

598


Explain access specifiers?

659


What is the use of default method in interface in java?

551


If a class is declared without any access modifiers, where can the class be accessed?

598


what is the difference between the methods sleep() and wait()? : Java thread

516


What are three advantages of using functions?

538


What is a flag value?

519