1. Give output of following statements:
(0) System.out.println("Lucknow".toUpperCase());
(t System.out.println("England".charAt(4));
dil) System.out.println("Nice".equals("nice"));
(iv) String st = "this is final examination":
System.out.println( st.length() );
Answers
Answered by
2
1) System.out.println("Lucknow".toUpperCase());
OUTPUT:
LUCKNOW
2) System.out.println("England".charAt(4));
OUTPUT:
a
3) System.out.println("Nice".equals("nice"));
OUTPUT:
false
4) String st = "this is final examination":
System.out.println( st.length() );
OUTPUT:
25
Similar questions