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
Difference between notify() method and notifyall() method in java?
If a method is declared as protected, where may the method be accessed?
What is remote method invocation (rmi)?
What does replaceall do in java?
What is double parsedouble in java?
How do you escape sequences in java?
How is java created?
Can a class be final?
What is use of static method?
What exactly is a .class file?
What is a ternary operator in java?
How to create packages in java?
What are the two types of java?
Is java a software?
Is logger a singleton?