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
Can main() method in java can return any data?
Explain how can you debug the Java code?
When will you define a method as static?
What is the syntax and characteristics of a lambda expression?
What are the different access modifiers available in java?
How do you create a bulleted list?
Can constructor be synchronized?
Can a class have multiple subclasses?
Can we overload the main() method?
Is array size fixed in java?
What is the default size of load factor in hashing based collection?
What is array sorting in java?
What does pointer mean?
What is the difference between an array and an array list?
How java is similar to c?