Write the difference between a static function and non static function in java
Answers
Answered by
2
Answer :
A static method can access only static members and can not access non-static members. A non-static method can access both static as well as non-static members. Static method uses complie time binding or early binding. Non-static method uses run time binding or dynamic binding.
Similar questions