why we cannot declare static variable inside a static method
Answer Posted / ravikiran
Because all the variales inside static method are by
default static
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What is java lang object?
what is the difference between process and thread? : Java thread
What is a local block?
What is function and its uses?
What is class array in java?
What is string builder?
What is a super method?
How will you load a specific locale?
What do you mean by collectors in java 8?
What is the difference between comparison done by equals method and == operator?
What is data member in java?
What is the difference between instanceof and isinstance?
Can a class be final?
Why is boolean important?
What is the purpose of the return statement?