Computer Science, asked by pl123, 11 months ago

what is the problem of dangling else? When does it arise? What is the default else matching and how it is to be overridden in Java?

Answers

Answered by Anonymous
5
mate here is your answer...

When the number of if statement is more or less then that of else statement confusion arises in matching by the compiler..

the problem so called is dangling else .

It can be overcome by the use of braces.

hope it helps you..


Anonymous: please select it as brainliest
Similar questions