Illegal assignments

Report a typo

You are given a class Example with multiple static blocks.

class Example {

    static final int FIELD_1;
    static int field2 = 40; // (1)
    int field3;
    
    static {
        FIELD_1 = 30; // (2)
        field2 = 50;  // (3)
        field3 = 100; // (4)
    }
    
    static {
        FIELD_1 = 30; // (5)
        field2 = 80;  // (6)
    }
}

Select all illegal assignments.

Select one or more options from the list
___

Create a free account to access the full topic