Is there a goto in Java?

Source: Internet
Author: User

Yesterday, a colleague asked me what is goto? I was just beginning to be very vague about Goto, because when I first approached Java, I remember that the tutor mentioned this question, and after looking at some information yesterday I found that this goto is not much of a role for our Java programmer, But met or simple to do understand it! In fact, the Goto course is very bumpy!

Does Java have a goto?

Note: What is goto?

Goto is a high-level programming language that represents a turn, and now has a reserved but not recommended use of C + +

Goto Benefits: Ensure that the program has a unique exit and avoids overly large if nesting

Goto disadvantage: Goto statement makes the static structure and dynamic structure inconsistent, so that the program is difficult to understand, difficult to error

A: Although Goto is also a keyword in Java, it does not support the use of


This article from the "Easyui Foundation" blog, reproduced please contact the author!

Is there a goto in Java?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.