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
If you do not want your class to be inherited by any other class. What would you do?
What is downcasting?
What is the replace tool?
What is the final access modifier in java?
What is mnemonic code?
How do you delete a list in java?
Explain list interface?
What are the core java topics?
What is r * in math?
How do you remove an object from an arraylist in java?
Explain the meaning of java applet.
Explain the use of volatile field modifier?
How do I write a self declaration?
Are maps ordered java?
What is the difference between the paint() and repaint() methods?