Which statement is correct for the method prototype given below:

ICSE Class 10 Computer Applications PYQ · 2025 Improvement · Section A

1(iii)1 Mark · 2025 · Section A · 2025 Improvement

Which statement is correct for the method prototype given below:

int check(char ch, String s)

Show SolutionHide Solution↓

check() has return type int

Reason — In the method prototype int check(char ch, String s), the keyword int before the method name specifies that the method returns an integer value. The parameters char ch and String s are formal parameters, and the method is not a constructor as it has a return type.

← Previous questionNext question →

Browse the free Computer Applications sample bank