Tricky Interview Question | Difference between String, StringBuffer and StringBuilder in Java

preview_player
Показать описание
1)Definition
2)Differences
i)Storage
ii)Mutability
iii)Synchronization
iv)Thread- safety
v)Performance
3)Evaluates the performance between StringBuffer and StringBuilder

You can watch below video to understand String literal and String Object:

--------------------------------------------------------------------------------------------------------------
Checkout the Playlists:
👉 Java Tutorial For Beginners:

👉 Design Patterns in Java

👉 Tricky Java Interview Questions

👉 Important Java Programs for Interview:

👉 How to Avoid Common Mistakes as a Java Beginner

👉 Interview Coding Challenges

👉 MySQL Tutorial For Beginners:

👉 What is Agile | Understanding Agile Software Development Process:

👉 Selenium with Java Tutorial For Beginners:

LIKE | SHARE | SUBSCRIBE 😊

👇👇👇
Follow me on
Рекомендации по теме
Комментарии
Автор

Your explanation is good, but please make one correction that Sting is not Synchronized, only StringBuffer is Synchronized. String is thread safe, because of Immutability. But generally for thread safe StringBuffer should be used.

abhaymishra