What will be the result of the compilation and execution of the following code:

interface I {
    public final static int EASY = 5;
}

public class Main implements I {    
    public static void main(String[] args) {
        int a = 5;
        test(++a);
    }
    
    static void test(int a) {
        a += EASY + a++; 
        System.out.println(a);
    }
}
Explanation
Get an explanation when it's available:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback