Question: STATIC VARIABLE DECLARATION
why cannot the static variable declare inside the method
Static variables are class level variables. Static means one per class as per OO rules and method level variables scope is with in the method. So java does not allow static variable to be declared inside a method.