Which of the following class level (nonlocal) variable declarations will not…

PYQ RPSC Programmer 2011

Which of the following class level (nonlocal) variable declarations will not compile?

  1. A.

    protected int a;

  2. B.

    transient int b = 3;

  3. C.

    private synchronized int e;

  4. D.

    volatile int d;

Attempted by 2 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…