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
posted
0
I think its the reverse Jonathan
Sandy L
Greenhorn
Joined: Oct 20, 2000
Posts: 9
posted
0
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
posted
0
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
posted
0
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
posted
0
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
posted
0
Hi, You are right. Thanks a lot Bhuvana for the answer. Thanks Milind