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

class Quizful {
    private int xp = 0;

    static void add(Quizful q, int value) {
        q.xp = q.xp + value;
    }
    
    static void multiply(int xp, int value) {
        xp = xp * value;
    }

    public static void main(String[] args) {
        Quizful q = new Quizful();
        add(q, 2);
        multiply(xp, 3);
        System.out.print(q.xp);        
    }
}
    

Mobile Beta

Get it on Google Play
or Subscribe for future quizzes