wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Java Keywords" Watch "Java Keywords" New topic
Author

Java Keywords

Chitra Natarajan
Greenhorn

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
Denver,Co.
USA
E-mail:schithu@yahoo.com
KN
Ranch Hand

Joined: Aug 13, 2000
Posts: 66
Refer this site for Java Keywords. null, true and false are Java reserved literals.
http://java.sun.com/products/jdk/1.2/docs/api/index.html
KN
Ranch Hand

Joined: Aug 13, 2000
Posts: 66
Oh...Actually I mean this site http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

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
e.g
true and false r boolean literals where as
null is a null literal
chetan nain
Ranch Hand

Joined: Jun 21, 2000
Posts: 159
chitra,
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
chetan
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
Hi
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
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
I am really looking forward to hear from our moderators. please do help here.
tahnks
 
 
subject: Java Keywords
 
Similar Threads
True, false and null = keyword or identifier?
null layout
r they keywords or literals?
true,null,false
keyword