Computer Science, asked by subrotoc21, 9 months ago

Differentiate between static variable and non static variable.​

Answers

Answered by sona7460
2

Answer:

A static variable is shared among all instances of a class.

A non static variable is a specific to a single instance of that class.

Explanation:

A static variable can be shared by all users for the current running system.

Answered by KiranJalumuri
6

Answer:

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

Explanation:

Plz Mark me as Brainliest

Similar questions