‹ Back to the paper
Question 16
2 marks
Computer ScienceISC 2022 Computer Science - Specimen paper (Semester 1), Paper 1MCQPrimitive values, Wrapper classes, Types and casting
Choose the correct option.
What is the output of the statement given below? System.out.print(Integer.parseInt("234") + 'A');
- (a)234+65
- (b)234A
- (c)299
- (d)ERROR
Answer
Answer
Correct option: (c)
Answer: (c) 299
Integer.parseInt("234") is the int 234 and 'A' is 65, so the sum 299 is printed.