a) String a=”NORTH ", b= "POINT";
i) System.out.print(a.substring(1,4);
ii) System.out.print(a.compareTo(b));
iii) System.out.print(a.equals(b));
Answers
Answered by
4
Answered by
0
i)ORT
ii,) -2. as ASCII value of N is 78 and P is 80 therefore 78-80( a compared to b)= -2
iii) false
Similar questions
Environmental Sciences,
1 month ago
Math,
1 month ago
Hindi,
2 months ago
History,
2 months ago
Biology,
10 months ago