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
Is singleton class immutable?
Why are pointers not secure?
How to display arraylist values in java?
What are wrapper classes in java?
Which sorting is used in arrays sort in java?
What is the difference between a choice and a list?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Difference between string s= new string (); and string s = "abv";?
Can you use abstract and final both with a method?
Explain different ways of creating a thread. Which one would you prefer and why?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is a pointer and does java support pointers?
How do you ensure that n threads can access n resources without deadlock?
what is the purpose of the runtime class?
What is the difference between java applets and applications?