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
Is a case study a method or methodology?
What does java final mean?
Can main() method in java can return any data?
Why do we need wrapper class?
Define how objects are stored in java?
What is the purpose of an interface?
What does indexof mean?
Write a program to check string is palindrome without using loop?
How do you trim a space in java?
How do you clear an arraylist in java?
What is use of map in java?
Write a java program for binary search?
What is remote method invocation (rmi)?
When would you use a static class?
What happens to a static var that is defined within a method of a class?