How do you define Global variables in Java ?
very simple:
class UseOfGlobal { private static int a; private static int b; }
but it is always good to have local variables defined inside method blocks where ever possible.