Hi Jim,
I agree with you. If you don't specify the return statement with the suitable return type, it won't compile. But if this type of Question comes in the exam, how can we be sure that it's not asking us to test for the suitable modifiers, position of the return type etc. If we are asked to choose the legal method definitions, should we not pick this one?.
public int aMethod(int a){}
Can you please clear my doubt regarding this.
Regards,
Kiran.