|1||Identify lines of code executed|
|2||Identify lines of code executed469|
|3||Identify lines of code executed470|
|4||Identify lines of code executed471|
|5||Identify lines of code executed472|
|6||Identify lines of code executed473|
|7||Identify lines of code executed474|
|8||Identify lines of code executed475|
|9||Identify lines of code executed476|
|10||Identify lines throwing exceptions|
|11||Creating Try & Catch Block|
What lines of the following program gets executed, given that there is no exception thrown in the program.
Correct Answer : C
As there is no exception thrown by any line, no catch block gets executed. So, only lines executed are A, B, D and G.
The answer is C.
Topic: Try Catch Block In Java