Differentiate between static variable and non static variable.
Answers
Answered by
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
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
Social Sciences,
5 months ago
Science,
5 months ago
Science,
5 months ago
Math,
10 months ago
Social Sciences,
10 months ago
Physics,
1 year ago