
Working with Layout • 533
Multiple Choice Questions
1. ___________________ returns an array that
contains all the elements stored in the invoking
collection. The array elements are copies of the
collection elements.
( a) Object[]toArray(Objectarray[])
( b) Object[] toArray()
( c) void toArray[]
( d) None of the above
2. The signature of getInsets() method is:
( a) public Insets getInsets()
( b) public Insets getInsets(int
top, int left, int bottom)
( c) public Insets getInsets(int
top, int left, int bottom, int
right)
( d) None of the above
3. Which is the constructor of CardLayout?
( a) public CardLayout(int ...