Java OCA OCP Practice Question 522

Question

What symbol is used for a varargs method parameter?

  • A. ..
  • B. ...
  • C. --
  • D. ---


B.

Note

Three dots (...) are the syntax for a method parameter of type varargs.

It is treated like an array.




PreviousNext

Related