Today's interview questions:
Is there a goto keyword in the Java language?
I believe many students are asked to answer this question. The answer is: Goto is a reserved word in the Java language and is not currently used in Java.
But, but have you ever wondered why the interviewer wants to ask you this question. He is to investigate whether your knowledge is extensive ...
So when you encounter this problem, you should answer: In fact, Goto is the word c, goto statements are usually used in conjunction with conditional statements, can be implemented to achieve conditional transfer, forming a cycle, out of the circulation body and other functions. In the structural programming language generally does not advocate the use of goto statements, so as to avoid the confusion of program flow, so that understanding and debugging procedures have difficulties. In the Java language, however, the word goto is just a reserved word and not yet used. That's because the Java language is simple and convenient. Note: Java reserved words are used in the C language.
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