Can we declare Static Variables inside Main method? Because I am getting an error message:
Static
Main
Illegal Start of Expression
You cannot, why would you want to do that? You can always declare it on the class level where it belongs.