What is the difference between Integer and int?

Answer Posted / ravikiran(aptech mumbai)

Integer is a wrapper class object where as int is a
primitive datatype

Is This Answer Correct ?    31 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare array without size in java?

542


What is the dot operator?

561


What is methods in java?

504


How do you remove spaces in java?

528


Why constructor has no return type?

632






What are the four corner stones of oop?

538


What is a ternary operator in java?

526


How list contains works in java?

548


How do you use equal in java?

539


what r advatages of websphere? & how to deploy?

1628


What access modifiers can be used for class ?

529


How can I debug the Java security exceptions and AccessControlExceptions?

623


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

577


How do you declare an empty string?

610


Which object oriented concept is achieved by using overloading and overriding?

544