Does Java have "goto"?

Questions by Beena   answers by Beena

Showing Answers 1 - 17 of 17 Answers

Bhavin Mehta

  • Sep 27th, 2005
 

No. Java dosnt support goto, although goto is a reserved keyword.

goto can be implemented using  continue and label

i.e

continue l2; // where l2 is a label of  a loop

  Was this answer useful?  Yes

Devidas Sonawane

  • Oct 19th, 2005
 

No, java remove goto keyword of C and C++. instead it has Label and break keyword.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions