Code Debugging Questions
Code Debugging Questions
3)Is the code compiles ? If yes then what will be the output ?
a) Yes, Exception b) yes, exception c) no, arithmeticexception
d) yes, ArithmeticException
4)Is the code compiles ? If yes then what will be the output ?
5)Is the code compiles ? If yes then what will be the output ?
a) yes, Am I going to disappear? b) yes, I am born new c) no output
d) logical and syntax error
-
a) No , Error at line 6 b)no, error at line 7 c) no, can not convert from
int to boolean d) both a and d
7) Is the code compiles ? If yes then what will be the output ?
8)Is the code compiles ? If yes then what will be the output ?
a) Yes, try finally b) yes, catch finally c) no output d) error
9)Is the code compiles ? If yes then what will be the output ?
a) Yes, abcd abc false abcd abcd true b)yes c) abcd abc false
d) both b and c