What is difference between static method and static
variable?

Answer Posted / kusum

if a variable is declared static only single copy is
visible to all instances of class.if a method is declared
as static it is executed first as how main method is
executed in java

Is This Answer Correct ?    22 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is boolean a wrapper class in java?

835


What is update method called?

880


What is nested loop? What is dangling else condition in it?

814


What is meant by design patterns?

790


Which is faster call by value or call by reference?

706


How many types of classes are there in java?

785


What is locale in java?

792


What is ++ a in java?

763


What is replacefirst in java?

781


What is string literal in java?

778


Are arrays classes in java?

744


Is hashset ordered?

765


Explain the hierarchy of java exception classes?

799


Is 0 true or false?

718


Which class is the superclass for all the classes?

766