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

How to declare objects of a class ?

827


What is the difference in between cpp and java? Can u explain in detail?

857


What is map java?

743


Is null or empty java?

765


Can a static block throw exception?

866


What is a instance variable in java?

795


Is class is a data type?

812


What is getkey () in java?

807


What is an empirical question?

778


How variables are declared?

749


Explain, java is compatible with all servers but not all browsers?

828


What is a vector in java?

793


Which keyword specify that a variable is effectively final ?

784


What is variable declaration and definition?

764


Explain what is encapsulation?

829