find the output of the following program snippet:-String s= "7";int t = Integer.parseInt(s); t = t + 1000; System.out.println(t);
Answers
Answered by
1
Answer:
1007
Explanation:
parseInt method converts the String value present in s to integer value
ie. "7" to 7
Similar questions