Answer Posted / venkatesh
No we can't declare a static variable in a method.
only final and default scope variables are allowed inside
the method
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What does singleton mean in java?
Differentiate between stringbuffer and stringbuilder in java.
What is java virtual machine and how it is considered in context of java’s platform independent feature?
explain local datetime api in java8?
What are the types of methodology?
What is the difference between an object-oriented programming language and object-based programming language?
Have you ever used hashtable and dictionary?
What is the difference between conversation & casting?
What is the major difference between linkedlist and arraylist?
How can you handle java exceptions?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is string args [] in java?
What are the restrictions imposed by a Security Manager on Applets?.
Does variable declaration allocate memory?
Can I learn java without any programming experience?