Which three, inserted independently at line 6, allow the code to compile?

Given:
3. class TestVars {
4. int x, y;
5. char c;
6. // insert code here
7. }
Which three, inserted independently at line 6, allow the code to compile? (Choose three.)

Given:
3. class TestVars {
4. int x, y;
5. char c;
6. // insert code here
7. }
Which three, inserted independently at line 6, allow the code to compile? (Choose three.)

A.
int z = x/y;

B.
boolean t = y;

C.
char d = (char) y;

D.
boolean bool = “false”;

E.
int x = y++;

F.
int g = c;



Leave a Reply 0

Your email address will not be published. Required fields are marked *