0% found this document useful (0 votes)
3 views1 page

Essential String Methods Explained

The document explains string methods in programming, highlighting that strings are immutable and cannot be changed once created. It details various methods such as Trim(), ToUpperCase(), ToLowerCase(), IndexOf, Slice, and Replace, along with their functionalities. Additionally, it mentions method chaining and the use of arguments in method calls.

Uploaded by

rk2493853
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 views1 page

Essential String Methods Explained

The document explains string methods in programming, highlighting that strings are immutable and cannot be changed once created. It details various methods such as Trim(), ToUpperCase(), ToLowerCase(), IndexOf, Slice, and Replace, along with their functionalities. Additionally, it mentions method chaining and the use of arguments in method calls.

Uploaded by

rk2493853
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

String Methods ->

Sunday, 25 May 2025 10:53

What are String Methods ->

String -> Data Type jo --> Character ->

Method -> action , perform on the objects (String)

[Link]() ->

String are immutable in nature -> once created it cannot be changed


Changes are only allowed during --- by the help of function ->

1. Trim() -> it remove the whitespace from both the front and the Back
2. ToUpperCase() --- character ko capital bana dega , jo already honge unko toh capital hi rkhega or jo
nhi honge unko capital bana dega
3. ToLowerCase()----character ko smallbana dega , jo already honge unko toh small hi rkhega or jo nhi
honge unko small bana dega
4. Method Chaining -> when use a method with the method ->
5. Indexof -> ki woh index hamare m exist krtha hai ya nhi krtha hia
6. Slice -> index ke hisab se aage piche le jate ho
Si ->
Ei -> not included
7. Replace ->
("x")

String Method with Argument ->

Jab aap method call krthe ho with argument

[Link]()

[Link](arg)

You might also like