What is static variable and static method?
Answer Posted / niranjanravi
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 ? | 268 Yes | 54 No |
Post New Answer View All Answers
What is the list interface?
What is the difference between size and length in java?
What do you understand by overloading and overriding in java?
When is the finalize() called?
What do you mean by exception handling in Java?
What is string made of?
Write a program to print the pattern given below
What is the main use of java?
How many bits is a string?
what is a thread pool in java and why is it used?
Give me an example of array and linked list? Where they can be used?
What are the principle concepts of oops?
Why javac is not recognized?
Is string is a class in java?
What is use of arraylist in java?