Kotlin - Functions
Which of the following is true about vararg parameters in Kotlin?
Which of the following is true about vararg parameters in Kotlin?
vararg parameter is allowed per function, and it can be anywhere if named parameters are used, but usually last for simplicity. Also, vararg parameters cannot have default values.vararg parameters cannot be used with default values - correct. vararg parameters must be the last parameter - false (named arguments allow otherwise). vararg parameters can only be of type String - false. Multiple vararg parameters in one function - false.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions