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
Q6: Java language has support for which of
Q7: Consider the following program:
Import myLibrary.*;
Public class ShowSomeClass
{
//
Q8: Which of the following is TRUE?
A)In java,
Q9: Consider the following code snippet
String river =
Q10: What is different between a Java applet
Q11: You read the following statement in a
Q13: In Java Inheritance
A)all fields of a class
Q14: When does Exceptions in Java arises in
Q15: Which of these keywords is not a
Q16: Which of these keywords is used to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents