Font size:
Print
Question:
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
Check Answer
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
Check Answer