GoTo statement are not available in Java Rep) 1) Goto statement decrease readability of a program. 2) Goto statement may from Infinite loop 3) Goto's are not part of Structured programming 4) Goto statments make documentation difficult. A goto statement can cause program control to end upalmost anywhere in the program,for reasons that are often hard to unravel ,However almost always, there is a more elegant way of writing the same program using if,for,while and switch. These constructs are far morelogical and easy to understand. This is seldom a legitimate reason for using got, and its use is one of the reasons that programs become unreliable, unreadable.
goto is a keyword in java which you cant use in code.i guess if you use goto, you will get compiler error
Answers & Comments
GoTo statement are not available in Java Rep)
1) Goto statement decrease readability of a program.
2) Goto statement may from Infinite loop
3) Goto's are not part of Structured programming
4) Goto statments make documentation difficult.
A goto statement can cause program control to end upalmost anywhere in the program,for reasons that are often hard to unravel ,However almost always, there is a more elegant way of writing the same program using if,for,while and switch. These constructs are far morelogical and easy to understand.
This is seldom a legitimate reason for using got, and its use is one of the reasons that programs become unreliable, unreadable.
goto is a keyword in java which you cant use in code.i guess if you use goto, you will get compiler error