Can you declare a static variable in a method?

Answer Posted / muthusenthil

No, you can declare static variable only in static method

Is This Answer Correct ?    6 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null == null in java?

654


Can we declare a constructor as final?

679


Is there any sort function in java?

579


What are the two parts of a conditional statement?

518


What is a numeric string?

566






How do you use spaces in java?

534


Why object class is super class for every class in java?

579


Can we clone singleton object in java?

572


How is java created?

539


What is an image buffer?

541


Explain the features of java?

597


How java enabled high performance?

587


What is arrays fill in java?

547


What is float in java?

565


What package is math in java?

539