StringBuffer VS StringBuilder:

The StringBuilder class was added in Java 5. It has exactly the same API as the
StringBuffer class, except StringBuilder is not thread safe. In other words, its
methods are not synchronized.
Sun recommends that you use StringBuilder instead of StringBuffer whenever possible
because StringBuilder will run faster.

No comments:

Post a Comment