Can we declare a static variable inside a method? Ans. Static varaibles are class level variables and they can't be declared inside a method. If declared, the class will not compile. - Study24x7
Social learning Network
13 Oct 2023 10:16 AM study24x7 study24x7

Can we declare a static variable inside a method? Ans. Static varaibles are class level variables and they can't be declared inside a method. If declared, the class will not compile.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles