Java Programming Performance Tips


  • Java programming tips 
    • Strings 
    • Collections 
    • Exception handling 
    • Primitive and Objects
    • System.arraycopy


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,Lab Zip and Recordings of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.