Computer Science, asked by priyanshtiwari2004, 2 months ago

“Every syntax error is an exception but every exception

cannot be a syntax error.” Justify the statement.​

Answers

Answered by kamalrajatjoshi94
5

Answer:

“Every syntax error is an exception but every exception cannot be a syntax error" as during syntax error or an exception the program is unable to compile and give the output but during some exceptions the program is compiled successfully (though it do not give the output) but it shows no syntax error but shows errors during output and hence we can say

“Every syntax error is an exception but every exception cannot be a syntax error.”

Similar questions