What is static variable and static method?
Answer Posted / anupam sharma
static variables are classes variables not instance
variables .They are hold the value and 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 ? | 16 Yes | 18 No |
Post New Answer View All Answers
Is it safe to install java on my computer?
How does the garbage collector works in java?
What is OOP Language?
What is the equal sign?
Explain about method local inner classes or local inner classes in java?
What are constructors in java?
What is difference between == equals () and compareto () method?
what is meant by Garbage collection?
What is equals method in java?
What is the largest number a double can hold?
How do you use substring in java?
What is overriding in java?
Is ++ operator thread-safe in java?
What is the difference between integer parseint and integer valueof?
Difference between final and effectively final ? Why is effectively final even required ?