Multiple choice

Which of the following keywords should be used to make a class level variable?

  1. final

  2. static

  3. private

  4. classlevel

  5. public

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct answer.  The static keyword is used to  declare a variable class level.  For example, counters are made class level so that different class objects can access the same variable and perform actions on it.