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

What is the collections api?

571


Why can't we make a class private in java?

537


Is a class an object?

577


Explain all java features with real time examples

1204


What is :: operator in java 8?

556






How to implement a multithreaded applet?

2201


What is getkey () in java?

575


How can we make a class singleton?

572


Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

2852


What is meant by data hiding/encapsulation?

571


What is the r character?

585


What is keyword and identifier?

638


Which class cannot be a subclass in java?

541


what is a thread pool in java and why is it used?

527


What if constructor is protected in java?

559