I would like to ask about generic classes. What happens when I create two object instance from a generic class. Do they share every static members, or both have it's own static members?
So for example:
public A<?>(){
public static Integer member = 0;
}
A<Integer> integer = new A<Integer>();
A<String> string = new A<String>();
Do both Integer
and String
have the same reference behind member
?