What is difference between static method and static
variable?

Answer Posted / n.siddardh

static variable copy is available to every object in the
memory if we change one value in an object there no effect
inother objects,and if we declare a method as static that
will be executed by the JVM like main method
The execution of JVM
1.static block
2.static methods
3.Instance methods

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an infinite loop?

782


What is the core java?

721


Which is better stringbuilder or stringbuffer?

708


How many static init can you have?

910


What are synchronized blocks in java?

792


How many types of array are there?

739


Why is java so popular?

842


What is hotjava?

740


What is hashing in java?

776


Why string is not a wrapper class?

890


What are controls and their different types in awt?

831


What are the basics of core java?

755


Why we go for collections in java?

752


What is a substring of a string?

792


Is a copy constructor?

827