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

Q Which of the following is NOT allowed in Java?

Question ID
#24713
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 Returning an int
  • B Returning an object
  • C Returning an array
  • D Returning two primitive values using comma
Correct Answer: D

Explanation

✅ Answer: D) Returning two primitive values using comma

Share This Question

Share this MCQ with your friends or study group.