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.