What is static variable and static method?
Answer Posted / qaisarayub
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between static and global variables and also define what are volatile variables?
What is the difference between compile-time polymorphism and runtime polymorphism?
What does bitwise or mean?
Why java does not support pointers?
What is the null?
How does list work in java?
Can long be null in java?
What is a numeric format?
What an i/o filter?
explain the concept of virtual method invocation in polymorphism in detail?
What value is a variable of the string type automatically initialized?
What’s a deadlock?
How arrays are stored in memory in java?
Can an integer be null java?
What is the difference between dom and sax parser in java?