What is difference between static method and static
variable?
Answer Posted / archana
if we declare a variable as static then it has only one copy
for all classes. if a method is declared as static without
using object we can call it.
Is This Answer Correct ? | 11 Yes | 9 No |
Post New Answer View All Answers
How is hashcode calculated in java?
why not override thread to make a runnable? : Java thread
What is meant by anonymous class?
Is null a string?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
How is hashset defined in java?
What do you understand by the term polymorphism?
What is the statements?
What is difference between protected and private?
Can arraylist hold different types java?
Tell me the latest versions in java related areas?
What is a boolean flag in java?
What are static initalizers in java ?
Where is singleton pattern used?
Give us the name of the list layoutmanagers in java?