Quantcast
Channel: S. Nageswara Rao, Corporate Trainer – Way2Java
Viewing all articles
Browse latest Browse all 505

StringBuffer: ensureCapacity Vs setLength Vs trimToSize

$
0
0
Before going into the table, it is advised to refer the programs at: Java StringBuffer Methods: ensureCapacity() Example Java StringBuffer Methods: setLength() Example Java StringBuffer Methods: trimToSize() Example Following terminology is to be rememberd: Length: It is the number of characters present in the buffer (which generally be same or less than the capacity). Capacity: […]

Viewing all articles
Browse latest Browse all 505

Trending Articles