| Which take more memory int or Integer?
First we will pick Integer as Integer is an object which will take more memory and it will also stores metadata overhead about the object. And on other hand int is a primitive type and this will take less space. | | |