What is the difference between Integer and int?

Answer Posted / k.santosh kumar

int is a primitive data type , where as Integer is a class
which encapsulates the primitive int data type and
represents in terms of object.

Is This Answer Correct ?    35 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the tradeoff between using an unordered array versus an ordered array?

651


Difference between association, composition and aggregation?

552


what is bmg file and how to create that files?what will it contailn?

1875


How many types of array are there?

541


What is tostring () method?

534






Can we make a constructor final?

533


What is re-factoring in software?

566


Why is java architectural neutral?

610


What is the difference between abstract class and interface1? What is an interface?

551


Is array serializable java?

511


What are different data structures in java?

523


Explain jdk, jre and jvm?

559


Where is const variable stored?

526


How does map works in java?

505


Can we define package statement after import statement in java?

552