IntelliJ Java IDE
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes are these keywords ?..... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "are these keywords ?....." Watch "are these keywords ?....." New topic
Author

are these keywords ?.....

Milind Mahajan
Ranch Hand

Joined: Oct 23, 2000
Posts: 77
Hi,
Should goto,const and null should be considered keywords ? I had read that they are reserved words. Please let me know.
Thanks
Milind
ravi chan
Greenhorn

Joined: Nov 02, 2000
Posts: 11
Yes they are reserved words, but you cannot use them as a valid
identifier or variables. Please correct me if Iam wrong.
Jonathan Jeban
Ranch Hand

Joined: Oct 08, 2000
Posts: 52
Hi Ravi,
Just some corrections..
const/goto - keyword
null/true/false - reserved word

U can check sun's tutorial for this..

Jeban.
Originally posted by ravi chan:
Yes they are reserved words, but you cannot use them as a valid
identifier or variables. Please correct me if Iam wrong.

Sandy L
Greenhorn

Joined: Oct 20, 2000
Posts: 9
I think its the reverse Jonathan
Sandy L
Greenhorn

Joined: Oct 20, 2000
Posts: 9
We call goto as reserved since they are reserved for future use and may not be used as identifiers by user.
Jonathan Jeban
Ranch Hand

Joined: Oct 08, 2000
Posts: 52
Hi Sandy!
Pls do check this Javaranch FAQ on this..
const and goto or words that are reserved but are not reserve words. They are reserved keywords for future use...
Jeban
Milind Mahajan
Ranch Hand

Joined: Oct 23, 2000
Posts: 77
Hi,
Thanks a lot Ravi, Jonathan and Sandy for the response. This is what I understood when I read Sun tutorial :
1.All keywords are reserved, meaning that they cannot be used as identifiers.
2.goto and const are not currently used.
Thanks,
Milind
Bhuvana Dhruva
Greenhorn

Joined: Sep 11, 2000
Posts: 28
hi,
goto/cont are keywords, unused as of now, reserved for later use.
null/true/false are reserved literals- they have a value. not keywords. keywords r used to perform/ depict some form of action on usage. for eg. int i; - int actually tells the compiler that the a variable was declared and that some place has to be alloted to it.
but null ... only specify a particular value.
hope this helps,
bhuvana


Bhuvana
Milind Mahajan
Ranch Hand

Joined: Oct 23, 2000
Posts: 77
Hi,
You are right. Thanks a lot Bhuvana for the answer.
Thanks
Milind
 
 
subject: are these keywords ?.....
 
Threads others viewed
How's this possible ????
Help on an XPath Expression
is there some new keywords than the old 48 key words
How to set Scrollpane Knob color?
Redirecting the req to another server ?
developer file tools