What is static variable and static method?
Answer Posted / anupam sharma
static variables are classes variables not instance
variables .They are hold the value and 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 ? | 16 Yes | 18 No |
Post New Answer View All Answers
Define a java class.
What are data types in oop?
What is the size of boolean variable?
What is a priority queue java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
How to change the priority of thread or how to set priority of thread?
What is class forname used for?
What is files manifesting?
What is wrapper class example?
What do you understand by soft reference?
Is arraylist sorted in java?
Why we override equals() method?
What is singleton class example?
What are the topics in core java?
What modifiers may be used with a top-level class?