MCQs
Total Questions : 105
| Page 8 of 11 pages
Answer: Option D. -> All of the mentioned
max(), min() and abs() are all rounding functions.
Answer: Option A. -> add()
None.
Answer: Option A. -> search()
None.
Answer: Option D. -> when object of class is declared, each object contains its own copy of static variables.
All objects of class share same static variable, when object of a class are declared, all the objects
share same copy of static members, no copy of static variables are made.
Answer: Option C. -> sort()
None.
Answer: Option D. -> ensureCapacity()
When we add an element, the capacity of ArrayList object increases automatically, but
we can increase it manually to specified length x by using function ensureCapacity(x);
Answer: Option D. -> Properties
None.
Answer: Option C. -> elementCount
None.
Answer: Option C. -> before()
before() returns true if the invoking Date object contains a date that is earlier than one
specified by date, otherwise it returns false.
Answer: Option B. -> object
static statements are run as soon as class containing then is loaded, prior to any object declaration.