In addition to the eight basic types, what other types of virtual machines do they have?

Source: Internet
Author: User
Tags case statement keyword list switch loop

In Java, except for eight basic types (Boolean, byte, short, Int, long, Char, float, and double), other types are reference types, including class types (including arrays) interface type, such as string, array, and file stream. A reference variable in Java is a variable that stores the address of an object in the memory. Therefore, the comparison of the string content does not directly use the equal sign, but uses the string method equeals () to compare the content.

Another type is null.

Reserved Words in Java:

Java keyword list (51 groups in alphabetical order ):

Abstract, assert, Boolean, break, byte, Case, catch, Char, class, const, continue, default, do, double, else, Enum, extends, final, finally, float, for, if, implements, import, instanceof, Int, interface, long, native, new, package, Private, protected, public, return, short, static, strictfp, super, switch, synchronized, this, throw, throws, transient, try, void, volatile, while (friendly is not a reserved word)

Java reserved word list (14 groups in alphabetical order): Java reserved words indicate that the existing Java version is not used, but later versions may be used as keywords.

Byvalue, cast, false, future, generic, inner, operator, outer, rest, true, VAR, Goto, const, null

Note that default is used in the switch loop. If no result corresponding to switch exists in the case statement, the code after default is executed.

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.