Multiple Choice Question

Quiz Guidelines



Given the following code, which statements can be placed at the indicated position without causing compile and run time errors?

public class Test{
int i1;
static int i2;
public void method1(){
int i;       // ... insert statements here

Select 3 options

A. i = this.i1;
B. i = this.i2;
C. this = new Test( );
D. this.i = 4;
E. this.i1 = i2;

Q&A Set: