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
What is the internal implementation of set in java?
What is overriding in java?
Why does java doesnt suuport unsigned values?
Define inheritance with reference to java.
What is Major and importance difference between for and foreach loop ?
What is the difference between sop and work instruction?
What are the types of java?
Why set is used in java?
What is the difference between synchronized and synchronized block?
Can we override final method?
What is a generic type?
What is mvc in java?
What is the locale class in java programming?
What is meant by javabeans?
What is the purpose of a parameter?