What is difference between static method and static
variable?
Answer Posted / jimm
static variable can be used by static as well as non-static
method.
and static method only uses static variable
| Is This Answer Correct ? | 12 Yes | 8 No |
Post New Answer View All Answers
What is the benefit of using enum to declare a constant?
What is square root in java?
What are namespaces in java?
How can you generate random numbers in java?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is 32 bit float?
Explain notifyall() method of object class ?
How do you check if a character in a string is a digit or letter?
How does hashmap work in java ?
What is thread pool? How can we create thread pool in java?
Differentiate between == and equals().
Is string pool garbage collected?
Why should I use abstract class?
What is covariant return type?
How do you make a thread in java?