MCQ Single Best Answer Not Set

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

ID: #2012 Java Data Types and Variables - MCQ 1,406 views
Question Info
#2012Q ID
Not SetDifficulty
Java Data Types and Variables - MCQTopic

Choose the Best Option

Click any option to instantly check if you're 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: Option A

Explanation

Prints 2.5

Share This Question

Challenge a friend or share with your study group.