Java OCA OCP Practice Question 851

Question

Which of the following can be valid declarations of an integer variable?

Select 2 options

  • A. global int v = 10;
  • B. final int v = 10;
  • C. public Int v = 10;
  • D. Int v = 10;
  • E. static int v = 10;


Correct Options are  : B E

Note

For Option A.

global is an invalid modifier.

There is nothing like global in java.

The closest you can get is static.

For Option C.

Int with a capital I is invalid.

For Option D.

Int with a capital I is invalid.




PreviousNext

Related