File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Java Keywords Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Java Keywords" Watch "Java Keywords" New topic

Java Keywords

Chitra Natarajan

Joined: Jul 27, 2000
Posts: 13
Hi All,
In Java null, true, false are keywords or not?
According to Jaworski Mock up exam, above three are not keywords. He has given that valus are not keywords.
But according to Sun's CoreJava book, I found null is a keyword.
Any one can clear my doubt.
thanks in advance.
Also I want to tell one more thing.
In Jaworski Mockup exam one question's answers is wrong. i.e he has given that example of polymorphism is overloading. But as I know the correct answer is overriring.
Chitra Natarajan
Ranch Hand

Joined: Aug 13, 2000
Posts: 66
Refer this site for Java Keywords. null, true and false are Java reserved literals.
Ranch Hand

Joined: Aug 13, 2000
Posts: 66
Oh...Actually I mean this site

Sadashiv Borkar
Ranch Hand

Joined: Jun 07, 2000
Posts: 49
Hi ,
If you refer JLS (Chapter 3.9) you will find that
null, true and false... are not java reserved keywords but they r Literals
true and false r boolean literals where as
null is a null literal
chetan nain
Ranch Hand

Joined: Jun 21, 2000
Posts: 159
i think an example of polymorphism IS overloading. since in overloading, the method name essentially must be the same, we may define various ways of implementation of the same.
which is polymorphism
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
Me too had this confusion that which one is example of polymorphism. Either overriding or overloading. Initially I had an impression that overriding is example of polymorphism but in some mock exam I found that overloading is example of polymorphism.

I would love to hear from our moderator on this to make sure what is the correct answer?

Please do reply.
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
I am really looking forward to hear from our moderators. please do help here.
I agree. Here's the link:
subject: Java Keywords
It's not a secret anymore!