Talk:List of Java keywords

Technically, true and false are boolean literals, and null is the null literal.

http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#229308

Other languages
This page is a fairly handy resource, but I've noticed that such a thing doesn't exist for other programming languages (I'm particularly interested in C++, but I'm sure it would be very useful for other languages as well) and I was wondering if any of the programming wizards out there would be willing to make similar pages for other languages.

My advice would be to just created a "C++ keywords" page, and then wait for the wizards to come, and sho'nuff, they will add in all the details. Mzanime 05:44, 26 July 2006 (UTC)


 * Might also try this at Wikiversity. The computer science area is starting to get active.  I just completed some flashcards for java based on this file since I am studying Java.  Maybe some others  would flesh out C++ flashcard and transfer information this way.  71.161.0.110 03:59, 31 October 2006 (UTC)

Keywords vs. reserved words
What are the differences in term of their definition? I can see from the article that true, false and null are reserved words but not keywords. What attribute of them separate them from "keywords"? Kowloonese (talk) 22:01, 12 February 2010 (UTC)

Keyword "default" in Java is used in switch / case blocks - but also in annotations, to specify a default value in the annotation defintion, if none are supplied in the annotation instance. —Preceding unsigned comment added by 67.208.6.114 (talk) 19:49, 27 May 2010 (UTC)

Tidy up
Wikipedia is complaining that this is a long list that may not be terribly helpful and I agree.

These keywords can be broken down into various groups, like "variables", "literals", "protection levels", "procedural" and so on.

I'm inclined to start this for my own reference benefit soon, if no-one else does this, and no-one has issues with this. SEoF (talk) 13:08, 6 September 2010 (UTC)


 * I don't agree with the 'complaint'. It says, btw, "lists that may be poorly defined, unverified or indiscriminate."  It says nothing about length or "may not be terribly helpful".  To the contrary, I have found the list to be quite helpful.  OTOH, reorganization may make it even more helpful so don't let that discourage you.


 * As to the tag, since the list is well-defined, verified and well-cited, and anything but indiscriminate, I've pulled the tag.  Dmforcier (talk) 19:31, 16 September 2010 (UTC)

Where is "where" ?
The "where" keyword seems to be missing!--213.49.90.128 (talk) 19:02, 12 January 2012 (UTC)


 * "where" is not a Java keyword. — Preceding unsigned comment added by 208.80.200.2 (talk) 00:39, 7 June 2012 (UTC)

Where is "owner"?
If it really is a keyword? — Preceding unsigned comment added by 194.236.40.162 (talk • contribs) 12:18, 8 November 2012
 * owner is not a keyword. View this link. — Preceding unsigned comment added by 93.89.110.1 (talk) 12:28, 13 January 2014 (UTC)

Inadequate "class" description
The description given for  has to do with what "classes" are in general, not with the use of the class keyword. A link to Class (computer science) is fine, but this page is about keywords and should talk specifically about  as a keyword. 69.143.233.152 (talk) 01:40, 19 December 2012 (UTC)

Where is "boolean", "byte" and "char"?
These primitive types are missing among the list of keywords. They are keywords, because one cannot name a variable "boolean" nor "byte" nor "char". — Preceding unsigned comment added by 132.255.120.162 (talk) 14:27, 5 March 2015 (UTC)

"boolean" has already been added, but i added "byte" and "char" which are crystal-clear keywords... --Fansoft (talk) 17:46, 28 June 2015 (UTC)

@interface is not a reserved keyword, any more than any other predefined annotation identifier.
https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.9

If you disagree with an edit you should address the editor. Turn this into an edit war and I will appeal to an admin.

Now, if you want to add a separate section to deal with Annotation Type, be my guest. IMO it does not belong in this article, but I don't think it merits a new article so I don't know where else you'd put it. https://docs.oracle.com/javase/specs/jls/se8/html/jls-9.html#jls-9.6

Dmforcier (talk) 23:25, 29 November 2016 (UTC)

Where is "var"
The new keyword "var", introduced with Java 10 is missing. — Preceding unsigned comment added by 2A00:1398:9:FB03:75C2:AAA2:BF8B:C4C8 (talk) 15:35, 19 April 2018 (UTC)

First paragraph
The numbers don't add up. JLS says there are 51 keywords, to which are added the 3 literals and var. Jony (talk) 20:21, 25 December 2018 (UTC)

Reference
The reference to the Java Language Specification is obsolete. It is now on the internet as https://docs.oracle.com/javase/specs/jls/se11/html/index.html. Should it not be updated? Jony (talk) 20:34, 25 December 2018 (UTC)

yield (Java 14)
Switch-Expression will be introduced as standard in Java 14 (https://bugs.openjdk.java.net/browse/JDK-8230539) I don't feel comfortable enough to write an adequate summary for the usage of yield. — Preceding unsigned comment added by 212.91.237.105 (talk) 14:27, 22 January 2020 (UTC)