1. State the output of the following program segment when it is
executed:
String a = "Smartphone", b = "Graphic Art":
String h=a.substring(2,5);
String k=b.substring(8).toUpperCase();
System.out.println(h);
System.out.println(k.equalsignoreCase(h));
Answers
Answered by
4
Answer:
(ii) Character literal
(iii) Boolean literal
(iv) String literal
Similar questions