Multiple Choice Question

Quiz Guidelines

 

QID: 
274
Question: 

Which of the following statements can be inserted at // 1 to make the code compile without errors?

public class InitTest{
static int si = 10;
int i;
final boolean bool;   // 1
}

Select 1 option

A. instance { bool = true; }
B. InitTest() { si += 10; }
C. { si = 5; i = bool ? 1000 : 2000;}
D. { i = 1000; }
E. { bool = (si > 5); i = 1000; }

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!