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 is the access scope of protected access specifier?
Where can I find jdk in my computer?
What is an infinite loop?
Can a static method be overridden in java?
In case of inheritance what is the execution order of constructor and destructor?
What is the major drawback of internal iteration over external iteration?
Is java a compiler?
What is main difference between variable and constant?
Why do we need variables?
What is the nested interface?
what is function overloading in java?
What is the += operator called?
Can we define constructor in inner class?
Does java support function overloading, pointers, structures, unions or linked lists?
What is the difference between a constructor and a method?