Java Programming Performance Tips
Topics
- Java programming tips
- Strings
- Collections
- Exception handling
- Primitive and Objects
- System.arraycopy
Strings
String vs. StringBuffer
- String objects are immutable
- String concatenation creates multiple, intermediate representations
- Use mutable StringBuffer for all cases of String manipulation
StringBuffer vs. StringBuilder
- Both StringBuffer and StringBuilder objects are mutable
- StringBuffer is synchronized while StringBuilder is not
You must have an active subscription to download PDF and Lab Zip of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.