题目内容

Which of the following assignment statements is incorrect?

A.i = j = k = 1;
B.i = 1; j = 1; k = 1;
C.i = 1 = j = 1 = k = 1;

查看答案
更多问题

You can always assign a value of long type to a variable of int type without loss of precision.

A.true
B.false

You can always assign a value of int type to a variable of long type without loss of information.

A.true
B.false

Which of these data types requires the most amount of memory?

A.byte
B.short
C.long
D.int

If a number is too large to be stored in a variable of the float type, it _____________.

A.cannot happen in Java
B.causes overflow
C.causes underflow
D.causes no error

答案查题题库