Computer Science, asked by Nishantanchan1669, 1 year ago

How to use function which is not static in java?

Answers

Answered by InsaneJaat
1
The only way to call a non-static method from a static method is to have an instance of the class containing the non-static method. By definition, a non-static method is one that is called ON an instance of some class, whereas a static method belongs to the class itself.

THANKS!!
Answered by rekhaverma02021975
0

Answer:

The only way to call a non-static method from a static method is to have an instance of the class containing the non-static method. By definition, a non-static method is one that is called ON an instance of some class, whereas a static method belongs to the class itself.

Similar questions