public class Bird
{
private static int id = 0;
private String kind;
public Bird(String requiredKind)
{
id = id + 1;
kind = requiredKind;
}
public S
because here private static int id = 0;
id is declared static or class variable. Static variables are class variable they are not initialized or created every time an object is created.
So, only one copy of static variable exist. No, new copies are created when object are created using new
operator.