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 the default value of local and global variables?
Explain serialization and deserialization in java?
Can we override tostring method in java?
How do you compare values in java?
How do you use find and replace?
Differentiate between array list and vector in java.
How do you override a method?
What are the procedures?
Why is the main method static?
What is generic class?
What is a methodologist?
Explain the JDB in depth & command line.
Can a private method of a superclass be declared within a subclass?
Can java list contain duplicates?
What is lastindexof in java?