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

What is entry in java?

523


Why stringbuilder is not thread safe?

530


Explain naming conventions for packages?

571


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1455


What is java life cycle?

527






What is the access scope of protected access specifier?

530


What are void methods?

561


What are static blocks in java ?

603


Can the interface be final?

569


Can we override compareto method?

494


What is the string function?

542


What is java developer skills?

500


What are new features introduced with java 8 ?

544


How can you set the applet size?

565


How do you use wildcards?

525