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

1. A parameter variable's scope is the method in which the parameter is declared.
2. You must have a return statement in a value-returning method.
3. Any method that calls a method with a throws clause in its header must either handle the potential exception or have the same throws clause.
4. In the method header the static method modifier means the method is available to code outside the class.


1. TRUE
2. TRUE
3. TRUE
4. FALSE

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. With a BufferedOutputStream each output operation is directed to a buffer large enough to hold the data of many output operations. Transfer to the output device is performed in one large physical output operation when the buffer fills. b. With a BufferedOutputStream, a partially filled buffer can be forced out to the device at any time by invoking the stream object’s force method. c. With a BufferedInputStream, many “logical” chunks of data from a file are read as one large physical input operation into a memory buffer. d. With a BufferedInputStream, as a program requests data, it’s taken from the buffer. When the buffer is empty, the next actual physical input operation is performed.

Computer Science & Information Technology

A(n) ________ is a small, self-contained program that generally doesn't require any complicated installation

A) platform-neutral application B) desktop application C) web app D) app

Computer Science & Information Technology

Jane's computer operates on a disk operating system (DOS). Since the interface is difficult to use, she decides to install a new operating system that allows her to use icons and buttons to issue instructions to the computer. Which of the following types of interface should Jane choose?

A. ?Graphical user interface (GUI) B. ?Command-line interface (CLI) C. ?Batch interface D. ?Text-based user interface

Computer Science & Information Technology

________ can be used for a limited period that allows the user to try it out before purchasing a license

a. Donationware b. Freeware c. Retail d. Shareware

Computer Science & Information Technology