what is the reason behind non static method cannot be
referenced from a static Context?
Answer Posted / sadikhasan palsaniya
static variable and method refer to the class variable and
method and non static method can refer to particular object
and if static method can permit to access non static method
then how can recognize that method belong which object
that's why not accessible.
if any mistake welcome and correct me!!!!!
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is meant by the value of a variable?
What happens if I remove static from main method?
How do you define a parameter?
What are strings in physics?
How can we find the actual size of an object on the heap?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What kind of variables can a class consist?
What are user defined exceptions?
What is the purpose of checked and unchecked exceptions in JAVA?
Why are constructors used?
What is collection class in java? List down its methods and interfaces.
how can i use a nonsynchronized hashtable?
What is jrmp?
What is regex used for?
What do heavy weight components mean in java programming?