Multiple Choice Question

Quiz Guidelines

 

QID: 
91
Question: 

Given the following class, which of the given blocks can be inserted at line 1 without errors?

public class InitClass{
private static int loop = 15 ;
static final int INTERVAL = 10 ;
boolean flag ;
//line 1
}

Select 4 options

A. static {System.out.println("Static"); }
B. static { loop = 1; }
C. static { loop += INTERVAL; }
D. static { INTERVAL = 10; }
E. { flag = true; loop = 0; }

Q&A Set: