ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
In java, which rule must be followed?
Correct Answer: D — Keyword private preceding each private member
The private keyword must be mentioned before each private member. Unlike the rule in C++ to specify private once and list all other private member’s, in java all member declarations must be preceded by the keyword private.