Do you know that? $46 average hourly rates for Web Designer freelance next

Can we declare a static variable inside a method?

Static varaibles are class level variables and they can't be declared inside a method. If declared, the class will not compile.