English, asked by bnishith406, 5 months ago

estion 3
(a) What will be the output of the following program segment?
int a = 0, b = 30, c = 40;
- b + c++ + b; System out printin ("a = " + a);
b) Suppose, String str "STRING":
a =
11 11
What is the result in each of the following cases?
(i) System.out.print(str.charAt(2) + + str.charAt(3));
(ii) System.out.print(str.substring(3,1).equals(str.substring(3,4)
(iii) System.out.println (str.startsWith("ST"));
(iv) System.out.print (str.indexOf('R');​

Answers

Answered by Sohamdada
1

don't know my mate I will send you ans after

Similar questions