InterviewSolution
Saved Bookmarks
| 1. |
State the output when the following program segment 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)); |
|
Answer» Output: art true. |
|