why we cannot declare static variable inside a static method
Answer Posted / sachin kanojiya
Static variable initializes at the time of class load
(static variable initialize very first,after that static
method)that means static variable and method already define
but inside the static method can't declare static variable
because it is treat as static local member...
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Which is best ide for java?
What is the size of int in 64-bit jvm?
What are the differences between string and stringbuffer?
What are conditionals and its types?
Why is string class considered immutable?
What is compareto () in java?
what are Hostile Applets?
What is the history of java?
What is the meaning of flag day?
What are parsers? Dom vs sax parser.
How do I compare two strings in word in java?
What is function and its uses?
What is meant by object?
What is called module?
How many types of array are there?