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
Write a java program to count the number of words present in a string?
What are unchecked exceptions in java?
What are loops in java?
What is byte value?
What is a null class?
Why super is first line in java?
What do you mean by singleton class in java?
What is meant by JVM? Is JVM platform independent or not?
How to implement an arraylist in java?
What is the difference between keyword and identifier?
Is java based on c?
Why is java called the platform independent programming language?
What is meant by method?
what is a working thread? : Java thread
What is the java idl system?