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

1. When the keyword void appears in the method header, it means the method will return a value.
2. When a method is declared with the private access modifier, it can be called only by code inside the same class as the method.
3. In general, the same naming rules that apply to variables also apply to methods.
4. In a method header, the name is always followed by a set of parentheses.


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

Computer Science & Information Technology

You might also like to view...

Which of the following statements about a do...while iteration statement is true?

a. The body of a do...while loop is executed only if the terminating condition is true. b. The body of a do...while loop is executed only once. c. The body of a do...while loop is always executed at least once. d. None of the above.

Computer Science & Information Technology

You would use a section break to divide a document into parts

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ content control allows the user to select a specific item from a list

A) Plain Text B) Drop-Down List C) List D) Combo List

Computer Science & Information Technology

The ____________________ of a variable refers to the variable's visibility within a class.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology