Computer Science, asked by gowthem1507, 1 year ago

What is difference between static and nonstatic variables in java?

Answers

Answered by rekhaverma02021975
2

Answers..

Difference between static and non-static method in Java. ... A static method belongs to the class itself while a non-static method belongs to each instance of a class. Therefore, a static method can be called directly without creating any instance of the class and an object is needed to call a non-static method

Similar questions