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 program segment and mention how many times the loop will execute: int k; for ( k = 5 ; k < = 20 ; k + = 7 ) if ( k% 6==0 ) continue; System.out.println ( k );
© 2026 PadhAiPro. This question is provided for educational purposes.