In general, a string is nothing but a sequence of characters identified by double quote(" ").
In java,Programming each string is an object.
Java supports 4-inbuilt classes specifically used to represent and manipulate strings like:
String,StringBuffer,StringBuilder,StringTokenizer .
String is an inbuilt class present in java.lang package, specifically used to represent and manipulate strings.
In this context there are two approaches two represent strings which are as followed:
(SCP --- STRING CONSTANT POOL)
S1_ _ _ _ _ |
---|