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
Which access specifier can be used with class ?
how can you take care of mutual exclusion using java threads? : Java thread
What is the char data type?
How do you declare an empty string?
What does int argc char * argv [] mean?
Why Java is not pure Object Oriented language?
What is an error in java?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
What are the 6 mandatory procedures for iso 9001?
What is singleton class in java and how can we make a class singleton?
What is the importance of hashcode() and equals() methods?
What are the data types supported by java?
What is the method to expand and collapse nodes in a jtree?
What is meant by JVM? Is JVM platform independent or not?
What are the differences between throw and throws?