Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Complete listing of JAVA Keywords

 
May Pat
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone tell me where I can find a complete listing of JAVA keywords? I came across couple books and atutorial site. I seem to find more and more words.... Thanks a lot.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is the complete list of Java keywords. What are some of the other words you're seeing?
Some values, such as true, false, and null are literals, not keywords. For this exam, however, you need not differentiate between the two.
Corey
 
May Pat
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Corey. Other words I found from Java 2 Exam Cram by Bill Brogden and not included in the above site are:
byvalue, future, generic, inner, operator, outer, rest, var.
Also for Java 1.4, assert is a new keyword.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by May Pat:
Thanks, Corey. Other words I found from Java 2 Exam Cram by Bill Brogden and not included in the above site are:
byvalue, future, generic, inner, operator, outer, rest, var.
Also for Java 1.4, assert is a new keyword.

Indeed, assert is a new keyword specific to Java 1.4 (it looks like the list you had only went to Java 1.2), but the other words are not Java keywords. They may be key words to remember, but they are not keywords. There's a difference.
A keyword is a reserved word that can't be used as a variable name in a Java program. You can have a variable named outer, you can't have a variable named int.
I hope that helps,
Corey
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic