I have some doubts about usage of static method in Java. I read many places static variables are instance independent so be comes global.
public class ThirdC
Static variables are "per class". So it doesn't matter if your static variable in this class has same name/type as some other.
It's global in the sense that no matter how many object of that class you have, if you have them use a static variable, they'll all be using one var.