Answers for "difference in int and integer in java"

5

difference between integer and int

Int is a primitive data type
On the other hand Integer is a wrapper class that wraps a primitive type
int into an object
Int provides less flexibility as compare to Integer as it only allows the
binary value of an integer in it. The Intege on the other hand is more
flexible in storing and manupulating in data since wrapper class inherit
object class.
Posted by: Guest on December-05-2020
0

declare int java

int number = 10;
Posted by: Guest on June-19-2020

Code answers related to "difference in int and integer in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language