Guess the output

Report a typo

Here is the class Counter:

package com.mypackage;

class Counter {

    protected int i = 1221;

    void printCount(){
        System.out.println(i);
    }

    void incCount(){
        i = i + 1;
    }

}
 
public class Main {
     
    public static void main(String[] args) {
        Counter counter = new Counter();
        System.out.println(counter.i);
    }

}

What will be the output of this code? Write the answer below (or write "compile error" if you think the code is incorrect).

Enter a short text
___

Create a free account to access the full topic