Login
Remember
Register
Ask a Question
Which one will take more memory, an int or Integer?
+1
vote
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
Which one will take more memory, an int or Integer?
#java-memory
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 24, 2020
by
SakshiSharma
An Integer object will take more memory an Integer is the an object and it store meta data overhead about the object and int is primitive type so its takes less space.
...