Which of the following statements are correct?

a. A reference variable is an object.
b. A reference variable references to an object.
c. A data field in a class must be of a primitive type.
d. A data field in a class can be of an object type.

bd (a) is wrong because a reference variable is not an object, it is a reference that points to an object. (c) is incorrect because a class may have a data field of an object type such as String.

Computer Science & Information Technology

You might also like to view...

What is a specialty search engine?

A) Searches only sites deemed appropriate to an interest or industry B) Fee-based search engines with human assistants C) A collection of bookmarks on a topic D) A metasearch engine

Computer Science & Information Technology

Match each term with the correct statement below.

A. Teflon-coated cable that does not emit a toxic vapor when burned. B. the capacity of a channel to transmit data in terms of given speeds, such as 10 Mbps or 100 Mbps. C. a coax cable connector that has a bayonet-like shell. D. communications signal for single-mode fiber-optic cable. E. transmission source for multimode fiber-optic cable. F. generic representation for several Fast Ethernet technologies. G. software that is stored on a programmable chip on the NIC circuit board. H. operates only at full duplex and does not need to employ CSMA/CD. I. cabling that connects workstations and servers in the work area.

Computer Science & Information Technology