You read the following statement in a Java program that compiles and executes.
Submarine.dive(depth) ;
What can you say for sure?
A) depth must be an int
B) dive must be a method.
C) dive must be the name of an instance fie
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
Q12: Consider
Public class MyClass
{
Public MyClass(){/*code*/
}
// more code...
}
To instantiate
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