Multiple Choice Question

Quiz Guidelines

 

QID: 
307
Question: 

Which of the following can be used as a constructor for the class given below?

public class TestClass{
   // lots of code ...
}

Select 2 options

A. public void TestClass() {...}
B. public TestClass() {...}
C. public static TestClass() {...} 
D. public final TestClass() {...}
E. public TestClass(int x) { ...}

Q&A Set: