True/False Questions for Introduction to Data Structures
1
In Java, boolean and byte are primitive datatypes FalseView Answer
2
The equality operator, if(cp1 == cp2) when applied to objects, tells you whether two references are identical i.e. whether they refer to the same object: TrueView Answer
3
In Java, the statement
obj2 = obj1;
copies the memory address that obj1 refers to into obj2. Both obj1 and obj2 now refer to exactly the same object. TrueView Answer
4
In C++, the statement
obj2 = obj1;
copies all the data from an object called obj1 into a different object called obj2.
TrueView Answer
5
Java doesn’t use pointers like C++. TrueView Answer