1. String is an immutable class that changes the value in a string variable, which is equivalent to opening up new space for storing a new string variable
2. StringBuffer variable class, can change the value of the variable through the Append method, and StringBuffer is thread-safe, many of its methods are synchronous method, support concurrent operation, suitable for multithreading
3. StringBuilder variable class, but thread insecure, for single-threaded performance higher than stringbuffer
4. HashTable thread-safe, hashmap thread unsafe
5. So what is synchronization and what is asynchronous
Synchronization: A sent past a request, need to receive a response from the receiver B, a can proceed to the next step, otherwise wait
Async: A sends a past request, whether or not received a reply from B, a will continue to do the following things, and do not wait.
Java Learning Note (ii)-------String,stringbuffer,stringbuilder differences and mappings to synchronous, asynchronous-related knowledge