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
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What is bubble sorting in java?
Is empty string in java?
Can we synchronize static methods in java?
Does java support multiple inheritances?
Can a static method be overridden in java?
What is meant by distributed application? Why are we using that in our application?
Name container classes in java programming?
Can we have any code between try and finally blocks?
why are there separate wait and sleep methods? : Java thread
what is the difference between process and thread? : Java thread
What exactly is methodology?
Which is the class in java?
What is formatted output in java?
Can we have static methods in an interface?