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 are 3 data types?
hr interview how many minutes asking question
Can you inherit from an abstract class java?
What is a java applet? What is an interface?
Differentiate between postfix and prefix operators in java.
What is an example of a keyword?
What is the purpose of return statement?
What is the basic concept of java?
When is an object subject to garbage collection?
How do you check if a string contains only numeric digits?
How do you include a string in java?
Who is the owner of java?
What do you mean by default constructor in java?
Why java is called not pure object oriented language?
What are the methods used to implement for the key object in the hash map?