Objects selected to model a system must have all attributes which are invariant during operations of a system.

Each statement below is either TRUE or FALSE. Choose the most appropriate one and
ENTER in the “tear-off” sheet attached to the question paper, following instructions
therein.

2.1 Objects selected to model a system must have all attributes which are invariant during
operations of a system.
2.2 Use cases are not beneficial for all interface requirements.
2.3 Java considers the variables number and NuMbEr to be identical.
2.4 An instance member belongs to an instance, not to the class as a whole.
2.5 If the references x and y denote two different objects, the expression x.equals(y) is always false.
2.6 Subclasses of the String class can be mutable.
2.7 A local variable in a block cannot be redeclared in another block even if the blocks are disjoint.
2.8 If an exception is thrown during the execution of the finalize() method of an eligible object, the exception is ignored and the object is destroyed.
2.9 A constructor can be declared private.
2.10 The import declarations must be the first statement after any package declaration in a source file.

Leave a Reply