What is static variable and static method?
Answer Posted / radhika.rangu
Static variable:-static variable is a variable whose single
copy is shared by all the objects of a class.
Static Method:-static method is a method.It is used to
declare the keyword called static.No need to create the
Objects.It is called without creating the object
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
Which is better singleton or static class?
What happens if we override only equals?
What is tostring () method?
State differences between C and Java?
What is a byte array?
What is the purpose of tostring() method in java?
What is the simpletimezone class in java programming?
How many classes can any class inherit java?
What is the effect of keeping a constructor private?
What is procedure overloading?
What is string pool?
Why deletion in linkedlist is fast than arraylist?
What is purpose of applet programming?
Which package is always imported by default?
What is multi level inheritance in java?