11
codeBoy
8y

What is the difference between Integer and int in Java? Void and void?

Comments
  • 0
    @Error i think this clarifies it more to me..
    So this means that int is not an object ... it is just a alocation in memory?

    Another question ... why can't we have e.g. ArrayList <int> instead of ArrayList <Integer>...by that we stop using Integer at all?
  • 0
    @Error that's clarifies everything
    Thanks for your help :)
  • 2
    Ask these questions on stack overflow Bcause we can help you better dude 😉😉 (you can find all devrant guys there too 😅)
  • 2
    @koosha, in SO this question would close in a heartbeat because it's probably been answered the same day SO opened 😜
  • 3
    @koosha actually I hate asking in stackOverFlow... but i will give it a try next time ;)
  • 0
    @Eariel yes i guess so :)
  • 2
    @codeBoy me too. I ask three questions over there which never got asked before and I never got an answer... A lot of ppl over there are quite arrogant too tho.
  • 3
    @codeBoy yeah, everyone is so salty in SO
  • 0
    @codeBoy pretty much as it says in the picture.
    Also, int is a primitive and Integer is an object :)
Add Comment