Skip to content

Static or instance?

```java class Counter { static int total = 0; int mine = 0; void bump() { total++; mine++; } }

Counter a = new Counter(), b = new Counter(); a.bump(); a.bump(); b.bump(); System.out.println(Counter.total + " " + a.mine + " " + b.mine); ```

What is printed?