Computer Science, asked by cube95, 10 months ago

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 Anonymous
4

Answer:

(ii) Character literal

(iii) Boolean literal

(iv) String literal

Similar questions