By 'variable' and 'variables' are you referring to instance variables, as opposed to local variables?
Which of these are not legal declarations within a class?
Explanation:
'static' and 'final' are valid modifiers for both 'variable' and 'method' declarations within a class.
'transient' and 'volatile' modifiers are only valid for 'variables'.
'abstract' and 'native' are only valid for 'methods'.
Note: a class can have only have 'final', 'abstract' and 'public' as modifiers.
BTW: The CAPTCHA's that this web page provides are very difficult to decipher. Is there any way to turn down messiness in the CAPTCHA? I spent the last 15 minutes going through many, many CAPTCHA images that were way too difficult, I believe, for the average person to decipher, before I finally deciphered one correctly.
Thank you