Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

they are used as arguments to other methods of the class. they are only used by

ID: 3772887 • Letter: T

Question

       they are used as arguments to other methods of the class.
       they are only used by one method of the class.
       their values must be shared between different methods of the class.
       they are local variables.

       is a layout manager that organizes components left to right, top to bottom.
       displays only the last component added to each of its areas.
       places components around the edges of the display only.
       cannot be used in a JPanel.

(7)(TCO 2) Variables should be declared as member variables of a class if ...

       they are used as arguments to other methods of the class.
       they are only used by one method of the class.
       their values must be shared between different methods of the class.
       they are local variables.

(11)(TCO 3) FlowLayout (Points : 6)

       is a layout manager that organizes components left to right, top to bottom.
       displays only the last component added to each of its areas.
       places components around the edges of the display only.
       cannot be used in a JPanel.

Explanation / Answer

(7)(TCO 2) Variables should be declared as member variables of a class if ...
they are local variables
       (to that class and only this class instances can access that variables).

(11)(TCO 3) FlowLayout (Points : 6)
is a layout manager that organizes components left to right, top to bottom.