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 is the use of using enum to declare a constant?
Can we convert integer to string in java?
When can you say a graph to be a tree?
What is difference between java and java ee?
What is unmodifiable collection in java?
Can java cast null?
Why we used vector class?
Can a constructor be made final?
What are "methods" and "fields"?
What is difference between fail-fast and fail-safe?
Are arrays immutable in java?
What is the generic function?
Is string a data type in java?
What are the data types supported by java?
What exactly is a .class file?