String literal example source code
// String literal example code
package literals;
public class StringLiteralExample {
public static void main(String[] args) {
String s=" laxman scjp"; //(valid)
String s1="laxman \n scjp"; //(valid)
String s2="laxman \t scjp"; //(valid)
// String s= 'laxman scjp'; //not valid
}
}
0 comments:
Post a Comment