What is the purpose of the static keyword in OOP?
A) To indicate that a method cannot be overridden.
B) To indicate that a variable or method belongs to the class rather than any instance.
C) To indicate that a class cannot be instantiated.
D) To indicate that a method is abstract.
Answer: B) To indicate that a variable or method belongs to the class rather than any instance.
Explanation: The static keyword indicates that a variable or method belongs to the class itself, rather than to any particular instance of the class. Static members are shared among all instances of the class, making them useful for data that is common to all objects.