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


Please Help Members By Posting Answers For Below Questions

What is meant by the value of a variable?

674


What happens if I remove static from main method?

760


How do you define a parameter?

790


What are strings in physics?

768


How can we find the actual size of an object on the heap?

1065


Under what conditions is an object’s finalize() method invoked by the garbage collector?

787


What kind of variables can a class consist?

796


What are user defined exceptions?

803


What is the purpose of checked and unchecked exceptions in JAVA?

782


Why are constructors used?

746


What is collection class in java? List down its methods and interfaces.

725


how can i use a nonsynchronized hashtable?

2319


What is jrmp?

735


What is regex used for?

742


What do heavy weight components mean in java programming?

712