This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "simple question" Watch "simple question" New topic
Author

simple question

kittu anu
Greenhorn

Joined: Jan 18, 2002
Posts: 28
is default a java keyword or reserved word?
thanks
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
There is no word "default" in the java language, reserved or keyword.
"default" is what we call the absence of any specific access specifier.

Rob


Rob
SCJP 1.4
mark stone
Ranch Hand

Joined: Dec 18, 2001
Posts: 417
Rob: what about the default that we use in a switch !!! ???
Originally posted by Rob Ross:
There is no word "default" in the java language, reserved or keyword.
"default" is what we call the absence of any specific access specifier.

Rob
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Oh. Yea. That one. Whoops
Yes, THAT default is a keyword. And a reserved word. And a floor wax/dessert topping.
I was thinking about the "default" access modifier. So...never mind :roll:

Rob
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
hi
check this for keyword and reserved word...


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
sonir shah
Ranch Hand

Joined: Nov 01, 2001
Posts: 435
default--> is obviously a key word..
I would just like to confirm, " is this word used in any other place except for a switch statement?"
Just let me know if it can be used some where else too..
Sonir
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: simple question
 
Similar Threads
Interesting classpath question
Static Initializers.
question
Puzzling question from Mughal and Rasmussen
A Poll, a Poll, a very simple Poll!