Java - Static Keyword
What will be the output of this code?
class Test {
static int count = 0;
Test() {
count++;
}
static int getCount() {
return count;
}
public static void main(String[] args) {
new Test();
new Test();
System.out.println(Test.getCount());
}
}