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
How many types of threads are there in java?
What is a parameter in matrices?
What is a conditional statement explain with example?
What do you mean by exception handling in Java?
What are selection structures?
What are the types of web technologies?
What is difference between hashset and hashmap?
What advantage do java's layout managers provide over traditional windowing systems?
How do you generate random numbers in java?
What are thread priorities and importance of thread priorities in java?
Explain the usage of this with constructors?
What is struts in java?
What is stored procedure. How do you create stored procedure ?
What is == in java?
Is intellij better than eclipse?