• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

simple question

 
kittu anu
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is default a java keyword or reserved word?
thanks
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
mark stone
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
check this for keyword and reserved word...
 
sonir shah
Ranch Hand
Posts: 435
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic