Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Is There any Keyword called "default". public,private,protected and default are called access specifiers. I typed in the following code and got a compiler error. I just want to know whether the default access specifier is implicit or can we use it explicitly? Please clarify on this. Thanks
[ January 08, 2008: Message edited by: Thirumalai Muthu ]
Talking about keywords, from the top of my head: There is a even cuter keyword: const!
It is not used in anyway, but probably reserved in the creation of Java, and then they never done anything with it. const is a very often used keyword in C++ though, and there it tells the conpiler that a variable is immutable, and the compiler gives you an error when you act against it.
Take the Jesper's answer, default is a keyword for a switch statement, when no one of the cases are matched, then the default works. In access modifier default access doesn't have keyword, you just don't write an access modifier and you have it, i.e. int a; has default access.