asked 8.9k views
5 votes
This type of member variable may be accessed before any objects of the class have been created.

a. private
b. public
c. inline
d. static
e. None of these

asked
User LastElb
by
7.7k points

1 Answer

5 votes

Answer:

d. static

Explanation:

This is a question about Java programming.

A class contains information about it's members(objects). Private, public or inline variables must be related to an object, that is, an object has to be created before the variable is acessed.

Static variables, otherwise, may pertain to the class, and not to the object, that is, and thus, the correct answer is given by option d.

answered
User Loint
by
8.1k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.