What is static variable and static method?
Answer Posted / digant mehta
tatic variables are classes variables not instance
variables .They are instantianted only once for a
class.They are initialised at class load time.
Static method can be referenced with the name of the name
of the particular object of that class. That's how the
library methods like System.out.println works.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between abstract classes and interfaces in java?
Explain the purpose of garbage collection in Java?
How does hashset works in java?
Which is faster set or list in java?
What are local variables?
Does hashset allow duplicates in java?
What is a protected method?
What does || mean in vectors?
Why do we need data structure in java?
Is java a utf 8 string?
How many types of operators are there?
What does it mean that a class or member is final?
Explain the private field modifier?
Can we declare a class as static?
What is lazy programming?