MCQ Practice Single Best Answer Topic: Functions / Methods in Programming Languages

Q Which statement is correct?

Question ID
#24718
Subchapter
Functions / Methods in Programming Languages
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A A Java method can return multiple values directly.
  • B A Java method can return only one value, but that value can hold multiple data.
  • C A Java method cannot return objects.
  • D Java methods cannot return arrays.
Correct Answer: B

Explanation

✅ Answer: B) A Java method can return only one value, but that value can hold multiple data.

Share This Question

Share this MCQ with your friends or study group.