Font size:
Print
Question:

You read the following statement in a Java program that compiles and executes. submarine.dive(depth);

What can you say for sure?


1. dive must be the name of an instance field.
2. dive must be a method
3. depth must be an int
4. submarine must be the name of a class
Prev Question From the following Java code determine theattri...
Next Question What will be the output of the program?class A{...