Multiple Choice
Consider
Public class MyClass
{
Public MyClass() {/*code*/
}
// more code...
}
To instantiate MyClass, you would write?
A) MyClass mc = new MyClass() ;
B) MyClass mc = MyClass() ;
C) MyClass mc = MyClass;
D) MyClass mc = new MyClass;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: Which of these keywords is not a
Q3: When method defined in subclass which has
Q4: Which of the following is TRUE?<br>A)In java,
Q5: Consider the following program:<br>Import myLibrary.*;<br>Public class ShowSomeClass<br>{<br>//
Q6: Under what circumstances might you use the
Q8: You read the following statement in a
Q9: In Java Inheritance<br>A)all fields of a class
Q10: When does Exceptions in Java arises in
Q11: Java language has support for which of
Q12: Which of the following is the correct