• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Complete listing of JAVA Keywords

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic