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
Variable of the boolean type is automatically initialized as?
What is mean by encoding?
what is difference betweem home interface and remote interface?
what is the volatile modifier for? : Java thread
What is super?
Why is inheritance used in java?
what is function overloading in java?
Why java is used everywhere?
Is zero a positive integer?
How does a cookie work in Servlets?
What is an immutable class? How to create an immutable class?
What is the static block?
What is an off by one error in java?
what is the difference between thread and runnable types? : Java thread
Does java have a compiler?