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 are the advantages of defining packages in java?
What is map and hashmap in java?
What happens if a constructor is declared private?
How many types of classes are there in java?
What is the abstraction?
Explain the term virtual machine?
Why declare Main() inside the class in java ?
What is use of super keyword in java?
What is nan in java?
How do you use compareto?
How many arguments can a method have java?
Which method cannot be overridden in java?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
Do I need java on my pc?
Explain treeset?