• 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

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 showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic