Given the following class, which instance initializer block inserted at (1) will allow the class to be compiled?.
public class Main { static int v = 10; double length; final boolean active; // (1) INSERT CODE HERE }
Select the one correct answer.
(f)
This class has a blank final boolean variable active.
This variable must be initialized when an instance is constructed, or else the code will not compile.
The keyword static is used to signify that a block is a static initializer block.
No keyword is used to signify that a block is an instance initializer block.
(a) and (b) are not instance initializers blocks, and (c), (d), and (e) fail to initialize the blank final variable active.