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

1. Every method’s body is delimited by left and right braces ({ and }).
2. Primitive-type local variables are initialized by default.
3. Reference-type instance variables are initialized by default to the value null.
4. Any class that contains public static void main(String[] args) can be used to exe-
cute an app.
5. The number of arguments in the method call must match the number of parameters in
the method declaration’s parameter list.
6. Floating-point values that appear in source code are known as floating-point literals and
are type float by default.


1. True.
2. False. Primitive-type instance variables are initialized by default. Each local variable must explicitly be assigned a value.
3. True.
4. True
5. True.
6. False. Such literals are of type double by default.

Computer Science & Information Technology

You might also like to view...

Cascading Style Sheets (CSS) use special Hypertext Markup Language (HTML) tags to globally define font characteristics for a variety of page elements as well as how those elements are laid out on a Web page.

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

Computer Science & Information Technology

A(n) __________ address is an address expressed relative to some base location.

a. absolute b. byte c. word d. relative

Computer Science & Information Technology

A prebuilt set of formatting borders, effects, and layouts applied to a picture

A) Picture designs B) Picture styles C) Artistic effects

Computer Science & Information Technology

________ errors are the result of a syntactically correct formula but logically incorrect construction, which produces inaccurate results

Fill in the blank(s) with correct word

Computer Science & Information Technology