Answer the following statements true (T) or false (F)

1. In a general sense, a class is a collection of statements that performs a specific task.
2. If a specific task is performed in several places in a program, a method can be written once to perform that task and then be executed any time it is needed.
3. Every method must have a nonempty parameter list.
4. A method definition has two parts: a header and a body.
5. The statements that make up the method body are enclosed inside a set of curly braces.


1. false
2. true
3. false
4. true
5. true

Computer Science & Information Technology

You might also like to view...

Alignment is the horizontal placement of text, whether it is between the left and right margins in a Word document

Indicate whether the statement is true or false

Computer Science & Information Technology

__________ is the dominant search engine in China.

A. Baidu B. Yandex C. Google D. Yahoo!

Computer Science & Information Technology

Item F shows which of the following of Dreamweaver's built-in ftp client?

A. Expand button B. Collapse button C. List servers button D. Delete button

Computer Science & Information Technology

A network technician responds to a customer reporting that a workstation keeps losing its network connection. The user explains that it occurs randomly and it happens several times throughout the day. Which of the following troubleshooting methods should the technician perform FIRST?

A. Test the theory B. Establish a plan of action C. Gather information D. Question the obvious

Computer Science & Information Technology