there is a class In.class that can store a boolean value in class A and create a field public static In in = new In (); and set it to 1
in class B we create the same field and assign the value 2
If from class C contact A.in.value, what value does it return? If from class C then refer to B.in.value which one in this case?
new ln()-> twice to create two objects. And about the "what value it will return" in general - so this is easily verified independently. If the question was "why isА.in.valueequal to1, andB.in.valueis equal to2?" - it would have been another matter. - Regent