Technically, true and false are boolean literals, and null is the null literal.
| This article is rated List-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
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
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)
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)
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)
The "where" keyword seems to be missing!--213.49.90.128 (talk) 19:02, 12 January 2012 (UTC)
If it really is a keyword? — Preceding unsigned comment added by 194.236.40.162 (talk • contribs) 12:18, 8 November 2012
The description given for class has to do with what "classes" are in general, not with the use of the class keyword. A link to Class (computer science)#Java is fine, but this page is about keywords and should talk specifically about class as a keyword. 69.143.233.152 (talk) 01:40, 19 December 2012 (UTC)
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)
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)
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)
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)
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)
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)
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.