What is the purpose of the static keyword in Java? - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
2 followers study24x7 11 Aug 2023 12:40 PM study24x7 study24x7

What is the purpose of the static keyword in Java?

A

It indicates that a variable is an instance variable.

B

It allows a method to be overridden in a subclass.

C

It creates an object of the class.

D

It denotes that a variable or method belongs to the class, not instances of the class.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles