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
How to declare objects of a class ?
What is the difference in between cpp and java? Can u explain in detail?
What is map java?
Is null or empty java?
Can a static block throw exception?
What is a instance variable in java?
Is class is a data type?
What is getkey () in java?
What is an empirical question?
How variables are declared?
Explain, java is compatible with all servers but not all browsers?
What is a vector in java?
Which keyword specify that a variable is effectively final ?
What is variable declaration and definition?
Explain what is encapsulation?