I am watching all your recent videos, that word... let me share my screen.......it gives more expecting to learn ..😀😀
@KishorThakare-r8k9 ай бұрын
String is immutable whereas StringBuffer and StringBuilder are mutable classes. StringBuffer is thread-safe and synchronized whereas StringBuilder is not. That's why StringBuilder is faster than StringBuffer
@srivishnuyadav32449 ай бұрын
1.Strings are immutable… buffer and builder are mutable. 2. String buffer is Synchronised . so single thread can access methods at a time , So it is thread safe .So it is not faster. Version- Java 1.0 To over come this issue String builder is introduced at version Java 1.5 String builder is non-synchronised. So multiple threads can access at a time … so it is not thread safe . So it is faster
@kalyanipidurkar72999 ай бұрын
String is immutable class whereas string buffer and builder is mutable class. String is not synchronised, string buffer is synchronised and string builder is non synchronised. String is fast as compare to string buffer and string is slow as compare to string builder.
@subhanlucky93387 ай бұрын
String : once created, their contents cannot be changed because they are immutable.As strings are immutable , they are thread-safe .Used mostly where the string will not be modified frequently. StringBuilder : They are Mutable, as you can modify their contents after they are created.It is not thread-safe as it is designed to use in single-threaded environments. Meaning it is un synchronized I.e the reason for it's faster performance. StringBuffer : They are Mutable, as you can modify their contents after they are created.It is thread-safe and can be used in multi-threaded environments because Meaning it is synchronized I.e I.e the reason for it's slower performance.
@aigulidrisova11269 ай бұрын
Definitely all questions were interesting and difficult for me
@sima39529 ай бұрын
Thank you for sharing😊
@vishaldhell269 ай бұрын
I could not understand why we can't override a method of a superclass. In the first program.
@prdp47478 ай бұрын
Basically when we override in derived class, access specifier should be of same scope or higher. Hierarchy of access specifier is private