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

1) The print and the println methods are identical and can be used interchangeably.
2) A String literal may span multiple lines in the program code.
3) Java is a strongly-typed language.
4) Variables declared with the final modifier cannot have new values assigned to them.
5) The byte type can be assigned a larger range of numbers than the int type.


1) F
2) F
3) T
4) T
5) F

Computer Science & Information Technology

You might also like to view...

The command to display your home directory pathname is

a: echo home b: echo HOME c: echo $HOME d: echo $home e: all of the above

Computer Science & Information Technology

_________ returns the last character in a StringBuilder variable named strBuf?

a. strBuf.charAt(strBuf.length() - 1) b. strBuf.charAt(strBuf.capacity() - 1) c. StringBuilder.charAt(strBuf.length() - 1) d. StringBuilder.charAt(strBuf.capacity() - 1)

Computer Science & Information Technology

Calculate the maturity value of a certificate of deposit if the interest is compounded monthly. Round your answer to the nearest cent. Principal = $1,250, rate = 6.9%, time = 1 year

A.
B.
C.
D.
E.

Computer Science & Information Technology

When creation of an EBS snapshot is initiated, but not completed, the EBS volume:

A. Can be used while the snapshot is in progress. B. Cannot be detached or attached to an EC2 instance until the snapshot completes C. Can be used in read-only mode while the snapshot is in progress. D. Cannot be used until the snapshot completes.

Computer Science & Information Technology