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 the wrapped, classes?
What is a variable declaration?
What is string made of?
Can we clone singleton class in java?
What is module with example?
What is the purpose of the system class in java?
Can we compare two strings in java?
In which language java is written?
How would you convert bytes to string?
What is the difference between method overriding and overloading?
What are the different types of java?
What is the major difference between linkedlist and arraylist?
Difference between concurrent hashmap and hashtable and collections
Can java run on google chrome?
What are recursive functions? Give some examples?