HOnestly I copied word for word if I don't put semi-colon after Throwable error. If i put one error. If I enter a variable ie String name Cat String name error.
What is going on?!
package com.codegym.task.task06.task0601;
/*
Cat's finalize method
*/
public class Cat {
protected void finalize() throws Throwable
public static void main(String[] args) {
}
}