What is difference between static method and static
variable?
Answer Posted / archana
if we declare a variable as static then it has only one copy
for all classes. if a method is declared as static without
using object we can call it.
| Is This Answer Correct ? | 11 Yes | 9 No |
Post New Answer View All Answers
What are the two basic ways in which classes that can be run as threads may be defined?
What is regex in java?
What is a ternary operator in java? What is an interface?
What is string made of?
What is integer valueof?
What is try-with-resources in java?
Can private method static?
Explain the purpose of garbage collection in Java?
What is difference between null and void?
Difference between final and effectively final ?
What is the different types of functions?
What is * argv?
How would you convert bytes to string?
Explain yield() method in thread class ?
Explain what are final variable in java?