What is static variable and static method?
Answer Posted / govardhani
A static variable is a variable who's single copy in memory
is shared by all objects,so any modifications to the static
variable will modify it's value in all objects.
In classes, a static method is one that is called without an
instance of that class, while a non-static method is called
by instances of the class.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is bubble sort in java?
How many bytes is a string?
What is the base class for error and exception?
How do you compare two strings lexicographically?
What is nested top-level class?
What is the collections api in java programming?
Can we create a constructor in abstract class?
What is the importance of hashcode() and equals() methods?
Does java isempty check for null?
What does void * mean?
Why do we need singleton class?
Explain about the select method with an example?
what is the difference between the methods sleep() and wait()? : Java thread
How can we find the actual size of an object on the heap?
What is array length?