Which of the following correctly creates an anonymous array and passes its reference to a method named print? print({1, 2, 3}); print(int[] x = {1, 2, 3,}); print(int[]{1, 2, 3}); print(new int[]{1, 2, 3});

1

1 Answers

Anonymous Profile
Anonymous answered

Please specify your programing lang.

Answer Question

Anonymous