Answer the following statements true (T) or false (F)
1. When calling a method and passing a variable as an argument, always write the data type and the variable name of the argument variable in the method call.
2. You can pass string literals as arguments to methods containing string parameters.
3. You can pass int arguments into int parameters, but you cannot pass double or decimal arguments into int parameters.
4. A parameter variable can be accessed by any statement outside the method in which the parameter variable is declared.
1. false
2. true
3. true
4. false
You might also like to view...
To associate text with a control element, you can use the label element..
Answer the following statement true (T) or false (F)
The method contains(Object o) of the ArrayList class returns a value of type:
(a) int (b) char (c) byte (d) boolean
In a database, a ________ displays summarized information and is best structured for printing
A) form B) report C) field D) query
Cover pages are numbered, but the page number is ____.
A. suppressed B. formatted in bold C. grayed out D. none of these