This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reserved Keywords

 
Ramakrishna Gummadi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Rob Spoor
Sheriff
Pie
Posts: 20546
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic