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
How to retrieve data from database in java using arraylist?
What does function identity () do?
What is a map? What are the implementations of map?
What are reference variables in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
What are three advantages of using functions?
Is char * a string?
How do you sort in ascending order in java?
Why do we need wrapper classes?
How to restrict a member of a class from inheriting by its sub classes?
Difference between operator overloading and function overloading
How many java versions are there?
v-model life cycle
What are functions in java?
What is class level lock ?