Select from following answers:- It will throw a run-time error.
- It will compile successfully.
- It will throw a compile-time error.
- All Above
It will compile successfully.Because above function return type is Void,so it will not return anything from the code block.
So,when we compile,then it will compile successfully.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator