Learn Java for Android Development

assert boolean break byte case catch char class const continue default do double else enum extends false final finally float for goto if implements import instanceof int interface long native new null package private protected public return short static 38 CHAPTER 2: Learning Language Fundamentals strictfp super switch synchronized this throw throws transient true try void volatile while The compiler outputs an error message when you attempt to use any of these reserved words outside of their usage contexts. Also, const and goto are not used by the Java language. Listing 2-1 revealed several identifiers: public, class, X (a placeholder for an identifier), static, void, main, String, and args. Identifiers public, class, static, and void are also reserved words. Note Most of Java’s reserved words are also known as keywords. The three exceptions are false, null, and true, which are examples of literals (values specified verbatim).