StringBuffer:
- StringBuffer is alternate to String.
- StringBuffer is not immutable.(It can be altered)
- The default capacity of String Buffer is 16 characters.
- String Buffer is Synchronized(Thread safe).
Note: To see the contents of String Buffer, type "javap java.lang.StringBuffer" in cmd.
No comments:
Post a Comment