What symbol is used for a varargs method parameter?
A. ..
B. ...
C. --
D. ---
Answer:
B. ...
Explanation:
Three dots (...) are the syntax for a method parameter of type varargs. It is treated as an array.
Free Spring Boot Tutorial - 5 Hours Full Course
Watch this course on YouTube at Spring Boot Tutorial | Fee 5 Hours Full Course