Which of the following statements is false?

a. The method’s return type specifies the type of data returned to a method’s caller.
b. Empty parentheses following a method name indicate that the method does not require any parameters to perform its task.
c. When a method that specifies a return type other than void is called and completes its task, the method must return a result to its calling method
d. Classes often provide public methods to allow the class’s clients to set or get private instance variables; the names of these methods must begin with set or get.

d. Classes often provide public methods to allow the class’s clients to set or get private instance variables; the names of these methods must begin with set or get. Actually, the names of these methods need not begin with set or get, but this naming convention is recommended.

Computer Science & Information Technology

You might also like to view...

All of the following would be recorded in a macro if the Record Macro feature is active, EXCEPT:

A) pressing F4. B) dragging the mouse to select a word. C) pressing Ctrl+Home. D) inserting a signature line.

Computer Science & Information Technology

Which of the following is TRUE about Windows 8 and a Windows ID?

A) Windows 8 defaults to logging in with a Windows ID. B) The only way to log in to Windows 8 is with a Windows ID. C) Microsoft charges between $3.95 and $8.95/month for Windows ID service. D) The fee for a Windows ID is only $3.95/month.

Computer Science & Information Technology