Is there a rule of thumb for using Size or Length?
<p>Is there a rule of thumb when you are coding in Java that easily you know which one to use (Size or Length)? </p>

<p>One can memorize which data structure has what method, but is there an easier way of doing it? </p>

<p>For example if you define Array of int but you need to use length for ArrayList. </p>

<p>(My rule of thumb is to use length for Arrays and Size for data structures like collection and arrayList)</p>
