It's not a secret anymore!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes modifiers for class variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "modifiers for class variables" Watch "modifiers for class variables" New topic

modifiers for class variables

Kareem Qureshi
Ranch Hand

Joined: Mar 14, 2002
Posts: 102
this is a question from certification4career
A class variable is declared using following modifiers
can anybody tell me why answers a,b,c along with d are not valid. or i am missing something here?
i am talking of public static int a = 1; or private static int a = 1;
thanks in advance
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
"A class variable is declared using following modifiers "

I think they meant the question to read more like, "Which modifier creates a variable which is a class variable".

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: modifiers for class variables
It's not a secret anymore!