This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Reserved Keywords Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reserved Keywords" Watch "Reserved Keywords" New topic
Author

Reserved Keywords

Ramakrishna Gummadi
Greenhorn

Joined: Jun 29, 2011
Posts: 16
Hello friends tell me Java reserved keywords... ex- delete - (it not a keyword but it is a reserved keyword for future use).
So i want to know what are the reserved keywords are there currently...

Thanks in advance..
Piyush Joshi
Ranch Hand

Joined: Jun 10, 2011
Posts: 207

Whenever you have a question about the grammar and rules etc. of Java there is one of the most important source of information : Java Language Specification.

Search for "keywords" in JLS and you will get everything you want to know about them: Keywords in Java

edit: Btw delete is not a keyword!


Piyush
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

Nor is it reserved for future use. And it will never be, because that would break several methods in the existing API (File.delete() for instance). It's a keyword in C++ used for cleaning up objects, something that's not necessary in Java because of garbage collection.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reserved Keywords
 
Similar Threads
Is null a keyword?
keywords vs. reserved words
keyword vs. reserved word
SCJP Brainteaser (5)
reserved words and key words