What is static variable and static method?
Answer Posted / venkat
static 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 ? | 90 Yes | 49 No |
Post New Answer View All Answers
What are access specifiers available in java?
What is the difference between state-based unit testing and interaction-based unit testing?
Is passing by reference faster?
What is a nested list?
What will happen if a thrown exception is not handled?
What is abstract class? Explain
What are methods and how are they defined?
What is split return?
Explain the JDB in depth & command line.
How many tetrahedral voids are there in bcc?
What is the difference between an inner class and a sub-class?
Explain about fail safe iterators in java?
Can you extend main method in java?
Explain creating threads by implementing runnable class?
Can java run on google chrome?