why we cannot declare static variable inside a static method
Answer Posted / srinu
generally all variables inside static method treated as
static
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is function declaration?
How to remove the trailing spaces from a string?
What is static variable with example?
Is linkedlist thread safe in java?
Difference between keyword and identifier.
What is java oops?
Is null a string?
How do you override a method in java?
What is ternary operator?
What are the different types of multitasking?
Why are the objects immutable in java?
What is the default value of float and double datatype in java?
What is Java Reflection API? Why it’s so important to have?
Describe what happens when an object is created in java ?
explain autoboxing in java?