A, B, and D are incorrect.
A is incorrect because the declaration states that no value (void) is to be returned, but a string is.
B is incorrect because the wrapper class for character is Character and not Char.
D is incorrect because the return type of String does not start with a capital letter as it should.
That is, "public string doMethod" should read "public String doMethod".
|