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
What happens if an exception is throws from an object's constructor?
What is ternary operator in java?
Name component subclasses that support painting in java programming?
Can we increase array size dynamically in java?
What is the difference between pass by reference and pass by pointer?
Difference between association, composition and aggregation?
How can u increase the heap size in the memory?
What does java final mean?
What are wrapped classes in java programming?
Define an abstract class with reference to java.
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What is java virtual machine and how it is considered in context of java’s platform independent feature?
Is break statement can be used as labels in java?
How to display names of all components in a Container?
What is string and example?