0

What is the drawback of goto jumping statement?

8th Jan 2020, 5:37 PM
Nandalala
Nandalala - avatar
3 Réponses
+ 3
program becomes less readable, hard to debug, hard to track program flow. java has goto keyword but can't be used. most of the times goto can be replaced by other constructs like loops and if else. avoid using goto whenever possible.
8th Jan 2020, 5:48 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
Reduces readability and tracing the flow of control becomes difficult. By the way the goto statement is not supported in Java.
8th Jan 2020, 5:49 PM
Avinesh
Avinesh - avatar
+ 1
Code inside the label can be executed even without calling the label.
8th Jan 2020, 5:50 PM
Nandalala
Nandalala - avatar