Given the following class, which statements can be inserted at line 1 without causing the code to fail compilation?
Code: Select all
public class TestClass
{
int a;
int b = 0;
static int c;
public void m()
{
int d;
int e = 0;
// Line 1
}
}
I believe you mean to say "'c' is a class (or static) variable", not "'a'".Here 'a' is a class (or static) variable of type int so it will be given a default value of Zero.