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
How does linkedhashmap work in java?
What is loop in java?
What is an array in java?
What is the full name of java?
How do you square a number?
What’s the difference between the methods sleep() and wait()?
How to instantiate static nested classes in java?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
What are exception handling keywords in java?
Can we use different return types for methods when overridden?
What is communist flag?
Does java runtime require a license?
What is derived datatype?
What do you mean by a JVM?
What is meant by oops concept in java?