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
When should I use singleton?
Write code to implement bubble sort in java?
Which is better stringbuffer or stringbuilder?
What type of variable is gender?
What is thread count in java?
Explain the significance of listiterator.
What are data types in oop?
What is the point of java?
What are the loops in java?
Does printwriter create a file?
Explain an algorithm to find depth of a binary tree.
What are some alternatives to inheritance?
What is palindrome in java?
Why does java does not support multiple inheritance? Explain
What is a dot notation?