Question: Given the following class, which of these static initializer blocks can be independently inserted at (1)? Select the three correct answers. (a) static { alive
Given the following class, which of these static initializer blocks can be independently inserted at (1)?

Select the three correct answers.
(a) static { alive = true; count = 0; }
(b) static { STEP = count; }
(c) static { count += STEP; }
(d) static ;
(e) static {;}
(f) static { count = 1; }
public class MyClass { private static int count = 5; static final int STEP = 10; boolean alive; // (1) INSERT STATIC INITIALIZER BLOCK HERE }
Step by Step Solution
3.41 Rating (157 Votes )
There are 3 Steps involved in it
c e and f The static initializer blocks a and b are not legal since t... View full answer
Get step-by-step solutions from verified subject matter experts
