Professional Documents
Culture Documents
For Example:
String s=“Welcome”;
2. By new keyword - Java String is created by
using a keyword “new”.
For Example:
String s=new String(“Welcome”);
JAVA STRING METHOD