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
What are examples of modifiers?
What is the relationship difference the canvas class and the graphics class?
What is hash in java?
What is data string?
What is composition in java?
What are nested classes in java?
Does java have a compiler?
Which method cannot be overridden in java?
what is an objects lock and which objects have locks? : Java thread
What is the use of System class?
What is assembly used for?
What is loop in java?
Why is java so important?
How to set the permissions to a file in java?
Can a class extend 2 classes in java?