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
What is a method signature java?
What is a final class in java?
Is there is any difference between a scrollbar and a scrollpane?
What are the types of methods in java?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
Explain JMS in detail.
Program to Find the second largest element in an array.
What is unicode used for?
What does indexof return in java?
What are the types of casting?
What is the functionality of the stub?
What is an iterator java?
What is api data?
Which is the class in java?
Does .length start 0 java?