0% found this document useful (0 votes)
3 views5 pages

String Buffer

The document discusses mutable strings in programming, highlighting their advantages such as efficiency and thread safety. It contrasts mutable strings with builders, noting that builders are not thread-safe. Additionally, it includes references to random character generation in Java.

Uploaded by

pranjalahuja44
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

String Buffer

The document discusses mutable strings in programming, highlighting their advantages such as efficiency and thread safety. It contrasts mutable strings with builders, noting that builders are not thread-safe. Additionally, it includes references to random character generation in Java.

Uploaded by

pranjalahuja44
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sitting Buffer: -> Mutable characters.

of
-

- seg

string
a "Rahol";
=
a =

&
"Kral";
rilesbig pool
& memory/heps etc.
-

W 1 -
"Ruhal"

ry"
Advantay es e

⑪ Mutable

② Efficient
③ Thread safe

Builder is not
string
thread safe.
a 5
=

x ·P
1x
sping Str= +
p ....


r
wasted
I

I

str

& ->
a

tadinchart:
thie.
-

[Link].

↑-
at + (int) (26*ra)
charch= <char)
-
random the

You might also like