0% found this document useful (0 votes)
2 views2 pages

Java String Handling Basics

The document discusses String handling in Java including the String, StringBuffer, and StringBuilder classes. It describes how Strings are immutable and can't change value in the current object. It also lists some common String methods like length, charAt, substring, equals, indexOf, trim, replace, and concat.

Uploaded by

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

Java String Handling Basics

The document discusses String handling in Java including the String, StringBuffer, and StringBuilder classes. It describes how Strings are immutable and can't change value in the current object. It also lists some common String methods like length, charAt, substring, equals, indexOf, trim, replace, and concat.

Uploaded by

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

String handling

--------------------
String
String Buffer
String Builder
------------------------

String
--------
group of charactor...
"jadskjld"

two type declration


--------------------------
String a=new String("java"); =>two object create

string b="mani"; =>one object create

String b="mani";

String c=[Link]("java");

//mani java

String is immutable..
can't change the value in current object

---------------------------------------------------
String method
---------------------
73 Methods.
---------------

1)length() ;
2)charAt(int index);
3)Substring(int begin);
4)Substring(int begin , int end)
5)equals();
6)equlasIgnoreCase();
7)toUpperCase();
8)toLowerCase();
9)indexOf();
10)LastindexOf();
11)trim();
12)replace(old char, new char)
13)concat()
14)split();

You might also like