What is static variable and static method?
Answer Posted / qaisarayub
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What type of variable is error flag?
In case of inheritance what is the execution order of constructor and destructor?
What is the basic concept of java?
What is boolean strategy?
Can a static method be overridden in java?
What does three dots mean in java?
What is the difference between stream and buffer?
What is multithreading and its advantages?
Which method must be implemented by all threads?
What is the importance of main method in Java?
What are the legal operands of the instanceof operator?
Can we use a switch statement with strings?
What is definition and declaration?
What is meant by binding in rmi?
What is data type in computer?