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 we can make a write-only class in java?
What is difference between null and void?
Is char a method in java?
What is meant by final class?
Is jdk required on each machine to run a java program?
What is variable and constant explain with example?
What is bubble sort in java?
Can we declare a class as static?
Define reflection.
What is the difference between Array and Hash Table?
Write a program to reverse array in place?
What is generic class?
How do you differentiate abstract class from interface?
What is the use of flag?
Which one will take more memory: an int or integer?