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 string and its types?
Is void a keyword in java?
Garbage collection in java?
If you do not want your class to be inherited by any other class. What would you do?
How to create packages in java?
Can we have more than one package statement in source file ?
How many types of exception can occur in a java program?
What is methodological framework?
How to read and write image from a file ?
What is a null point?
What is double word?
Which java version is latest?
What is type inference in java8?
What is unsigned char?
What is a wrapper method?