MCQ Practice Single Best Answer Topic: Java Data Types and Variables - MCQ

Q The following fraction of code
double STATIC = 2.5 ;
System.out.println( STATIC );

Question ID
#2012
Subchapter
Java Data Types and Variables - MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A Prints 2.5
  • B Rraises an error as STATIC is used as a variable which is a keyword
  • C Raises an exception
  • D None of these
Correct Answer: A

Explanation

Prints 2.5

Share This Question

Share this MCQ with your friends or study group.