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
What is the main use of generics in java?
What is passing parameters in java?
Can I declare class as static or private?
What is the difference between the final method and abstract method?
What is comparator in java?
what is the messsage u r going to get from an objectoriented programing?
What data type is a string?
Why is sizeof not a function?
Is ++ operator thread-safe in java?
What is the difference between sop and work instruction?
What are the legal operands of the instanceof operator?
What is java Applet?
Is arraylist ordered?
What are filterstreams?
What is mnemonic code?