<<< StringBuilder, StringBuffer classes | Index | StringBuilder class >>> |
StringBuffer:
Thread safe
Use in multithreaded programs
Note:
StringBuilder is more efficient.
The rest of examples uses StringBuilder, but the same code will compile for the StringBuffer.
<<< StringBuilder, StringBuffer classes | Index | StringBuilder class >>> |