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 are peerless components in java programming?
What is meant by data hiding/encapsulation?
What are the benefits of immutable objects?
Why pointers are not used in java?
What is lexicographically smallest string?
How to declare objects of a class ?
What are the different types of constructor?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
describe synchronization in respect to multithreading? : Java thread
How does multithreading take place on a computer with a single cpu?
What are synchronized methods and synchronized statements in java programming?
What do you mean by a JVM?
What is the final access modifier in java?
What is the difference between the final method and abstract method?
How do you add an arraylist to an array in java?