I have just discovered this feature.
Declaring an interface using the "@interface" syntax allows you to put a default value.
public @interface HelloWorld {
public String sayHello() default "hello world";
}
This is something new for me. How is that default value suppose to be used.
I cannot find references to that, because the www is full of java interface documents prior to "@" addition in Java 1.5 ( was it on .5 or in .4? )
EDIT
Thanks for the answers ( I was somehow close to "annotation", for I use the tag already ) :P
I knew I should've read that document years ago!!!... let's see...
Many APIs require a fair amount of boilerplate code. For....