✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
¿Qué imprime?
class Coche {
static int contador = 0;
Coche() {
contador++;
}
}
public class Test {
public static void main(String[] args) {
new Coche();
new Coche();
System.out.println(Coche.contador);
}
}