That's a pleasure
sahil Kairon wrote:Thank you . . .
Fred is correct; it is not silly, but quite a difficult question.
. . . I know it was quite silly . . . .
That is a declaration and initialisation which is counted as a special kind of statement and that is permissible outside methods. It creates a(n instance) field, so that it normal programming.
Tim Holloway wrote:. . .. . .
And one more thing I wanted to ask that : - Implementing interface does not means that class will inherit its static and default methods ?
Correct me If I am wrong about the above statement.