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
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Dive must be a method.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
392
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate