Loading...
Write the output for the following: String s1 = "Life is Beautiful"; System.out.println ("Earth" + s1.substring(4)); System.out.println( s1.endsWith("L") );
Give the output of the following String class methods:
The output of the statement "CONCENTRATION".indexOf('T') is:
Give the output of the following program segment: String S = “GRACIOUS”.substring(4); System.out.println(S); System.out.println (“GLAMOROUS”.endsWith(S));
© 2026 PadhAiPro. This question is provided for educational purposes.