What am I doing wrong here?
package com.codegym.task.task06.task0604;
/*
Cat counter
*/
public class Cat {
public static int catCount = 1;
public Cat() {
Cat.catCount = 1;
}
protected void finalize() throws Throwable {
catCount += -1;
}
public static void main(String[] args) {
}
}