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
How many types of interfaces are there?
What is the difference between pass by reference and pass by pointer?
What is functional interface in javatpoint?
What is integers and example?
Is hashset ordered java?
What is identifier with example?
What is the use of bufferedreader?
What is multiple inheritance? Is it supported by java?
How to create packages in java?
What is argument in java?
What is a programming object?
Why does java not support operator overloading?
What an i/o filter in java programming?
How do you start a new line in java?
What are locale settings?