Is there a rule of thumb when you are coding in Java that easily you know which one to use (Size or Length)?
One can memorize which data structure has what method, but is there an easier way of doing it?
For example if you define Array of int but you need to use length for ArrayList.
(My rule of thumb is to use length for Arrays and Size for data structures like collection and arrayList)