this is a question from certification4career 19) A class variable is declared using following modifiers a.protected b.private c.public d.static 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 kareem
Marilyn de Queiroz
posted 14 years ago
"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".
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt