• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

discusss question about the key word and reserved word

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following are Java keywords?
A NULL
B null
C extends
D main

The given ans:c
My and:bc
I look up in <<complete java 2 Certification Study Guid>> I find the "null,true,false "appear in the table of "key word and reserved word",I can't distinct the keyword and reserved words,the book doesn't give a clearly difference .and the table doesn't give distinct which are keyword and which are reserved word,what can I do concern the key word question?
 
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gong James:
Which of the following are Java keywords?
A NULL
B null
C extends
D main

The given ans:c
My and:bc
I look up in <<complete java 2 Certification Study Guid>> I find the "null,true,false "appear in the table of "key word and reserved word",I can't distinct the keyword and reserved words,the book doesn't give a clearly difference .and the table doesn't give distinct which are keyword and which are reserved word,what can I do concern the key word question?


The answer is just extends
null, true, false are reserved words
There are soooo mannny threads here in javaranch
Please do a search and you will get many hits
Thankx
Ragu
 
Ranch Hand
Posts: 1246
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gong James:
Which of the following are Java keywords?
A NULL
B null
C extends
D main

The given ans:c
My and:bc
I look up in <<complete java 2 Certification Study Guid>> I find the "null,true,false "appear in the table of "key word and reserved word",I can't distinct the keyword and reserved words,the book doesn't give a clearly difference .and the table doesn't give distinct which are keyword and which are reserved word,what can I do concern the key word question?



null is a Literal.
Don't worry.. in the real exam the questions are very clear about
it.
 
Fei Ng
Ranch Hand
Posts: 1246
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ragu Sivaraman:
The answer is just extends
null, true, false are reserved words
There are soooo mannny threads here in javaranch
Please do a search and you will get many hits
Thankx
Ragu


they are Reserved Literals.
null, true, false
Not reserved keywords
 
Ragu Sivaraman
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While true and false might appear to be keywords, they are technically Boolean literals (�3.10.3). Similarly, while null might appear to be a keyword, it is technically the null literal (�3.10.7).
They are literals not keywords
Sorry bout that typo
 
You may have just won ten million dollars! Or, maybe a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic