Single Choice Moderate

QWhich of the following is the correct method declaration to accept an integer array?

ID: #24501 Array with Function 29 views
Question Info
#24501Q ID
ModerateDifficulty
Array with FunctionTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A void method(int arr)
  • B void method(int[] arr)
  • C void method(arr[])
  • D void method(array int)
Correct Answer

Explanation

Answer: B) void method(int[] arr)

Share This Question

Challenge a friend or share with your study group.