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.
A. ..
B. ...
C. --
D. ---
B. ...
Check out discount coupons: Udemy Courses - Ramesh Fadatare
Comments
Post a Comment