Chapter 8: Holding your Objects

xiaoxiao2021-03-06  37

There are two questions to distinguish array from other collection types: efficiency and type

In order to accommodate a group know how much it is, the most suitable choice should be an array. And if you accommodate a series of basic data types, arrays must be used

"Disadvantages" using Java collection is to lose type information when placing an object into a collection

Vector BitSet Stack HashTable

转载请注明原文地址:https://www.9cbs.com/read-64548.html

New Post(0)