Computer Sciences > GATE 2014 SET-3 > Object-Oriented Programming
Consider the following two statements:
I. If all classes of a C++ program are declared to be friends of one another, then the program is as insecure as a C program.
II. In Java, an instance of a class can access a private variable of another instance of the same class.
Which of the following statements is CORRECT?
A
Both statements I and II are TRUE.
B
Statement I is TRUE and statement II is FALSE.
C
Statement I is FALSE and statement II is TRUE.
D
Both statements I and II are FALSE.

Correct : b

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......