Integer costs 4 times as much storage as int (16 bytes for an Integer, 4 bytes for an int).
What benefit does Integer provide?

  • A: More accuracy
  • B: Useful methods
  • C: Can use e.g. with ArrayList < Integer >
  • D: All of the above
  • E: B and C only

    Answer

    Prev    Next    Page+10