What is static variable and static method?
Answer Posted / niranjanravi
static 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 ? | 268 Yes | 54 No |
Post New Answer View All Answers
How can we create a synchronized collection from given collection?
Explain implementation and how is it different from conversion?
What does singleton mean in java?
What is an arraylist in java?
What is entry in java?
How to make object serializable in java?
What is classes in java?
How to sort numbers in java without array?
What is the difference between member variables initialization and assignment in a constructor?
How can an exception be thrown manually by a programmer?
What is dot operator?
What is hasnext in java?
Can we pass null as argument in java?
Describe different states of a thread.
What are the characteristics of Final,Finally and Finalize keywords.