What is the difference between int and integer in java?



What is the difference between int and integer in java?..

Answer / Rohit Gautam

int is a keyword for an integral primitive data type, while Integer is a class representing an integer object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are static blocks in java ?

1 Answers  


Why is java logo a cup of coffee?

1 Answers  


Is java se free?

1 Answers  


whst is encapsulation?when u encpsulate actually while devoloping code?

7 Answers   Amdocs, MGL,


What JNDI(Java Naming and Directory Interface) provides?

4 Answers  


What is intern method in java?

1 Answers  


What is void in java?

1 Answers  


How to define a constant variable in Java?

1 Answers   TCS,


Explain about OOPS concepts and fundamentals.

1 Answers   Syntel, Visa,


What is the collections api?

1 Answers  


What is the meaning of variables in research?

1 Answers  


what is main difference b/w abstract class and interface

4 Answers  


Categories