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

List the features of java programming language.

556


What is a map? What are the implementations of map?

552


Is null a value?

554


What is java in layman terms?

521


What are kinds of processors?

561






Where and how can you use a private constructor?

530


Can you extend main method in java?

614


What is the use of default method in interface in java? Explain

541


How does linkedhashmap work in java?

511


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

542


What are unchecked exceptions in java?

608


When do we need to use internal iteration? When do we need to use external iteration?

601


Can a list be null in java?

535


Explain about the main() method in java?

565


What is the difference between class & object?

551