Answer Posted / vijayakumar chinnasamy
No static variable cannot be declared within static/non-
static method.
only "final" and "default" allowed within in method for
variable declaration. i.e u cant use
private,protected,public,static within method .it display
the compile time error "Illegal modifier".
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Name some OOPS Concepts in Java?
What do you understand by Header linked List?
What are variable names?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What are the methods available in a class?
Can java cast null?
What does string mean in java?
What are the differences between include directive and include action?
How java is similar to c?
What does file separator do in java?
What does this () mean in constructor chaining concept?
Explain what do you mean by functional overloading in java?
What is identifier with example?
What is hashing principle in java?
What is the difference between static method and instance method in Java?