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

Similar Questions

A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ
Choose the word that is opposite in meaning to the word “coherent”.
#5 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......