Important Java Mcq 1

Which of the following is false about protected class members?

(a) They begin with one underscore

(b) They can be accessed by subclasses

(c) They can be accessed by name mangling method

(d) They can be accessed within a classRead

Answer:

(c) They can be accessed by name mangling method

Explanation:

Name mangling is the encoding of function and variable names into unique names so that linkers can separate common names in the language.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?