Question: You read the following statement in a Java program that compiles and executes. Submarine nautilus = new submarine ( ) ; nautilus.dive ( depth )

You read the following statement in a Java program that compiles and executes.
Submarine nautilus = new submarine();
nautilus.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 variable
d) nautilus must be the name of a class
e) Submarine must be a method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!