hi siva,
I read the reply of Sri.(It is as following)
Siva,
The question that started this discussion was mentioning 'Access Modifier' and you brought 'static' into the picture. 'Static' is only a modifier not a 'Access Modifier'. Access Modifiers are 'public, protected and private' (I wonder why 'package' (default) isn't mentioned in RHE book).
~Sri~
Sri, static is also a Access Modifier. I have confirmed it in
Java language specification.
The default (if nothing specified) is also a Access Modifier and it is mentioned in RHE book.
I think the answer must be 1 and not 3.
regards
nidiya