What is static variable and static method?
Answer Posted / venkat
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 ? | 90 Yes | 49 No |
Post New Answer View All Answers
What are decalarations?
What are the various access specifiers for java classes?
Explain the importance of thread scheduler in java?
How to sort elements in a parallel array in java?
What is the lifetime and scope of a variable?
What is difference between pointer and reference?
What is space character in java?
What is type safety in java?
What is the difference between length and length () in java?
Why java is call by value?
What is the difference in between cpp and java? Can u explain in detail?
What is the implementation of destroy method in java. Is it native or java code?
List types of storage classes in java?
Is treeset sorted in java?
How to implement a multithreaded applet?