Loading...

Category: Uncategorized

Java Interview Questions and Answer

1) Difference between String, StringBuffer and StringBuilder in Java? String is immutable while both StringBuffer and StringBuilder is mutable, which means any change e.g. converting String to upper case or trimming white space will produce another instance rather than changing the same instance. On later two, StringBuffer is synchronized while StringBuilder is not, in fact…