

McqMate
Q. |
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 |
Answer» B. dive must be a method. |
View all MCQs in
Java ProgrammingNo comments yet