Java Varargs-Java variable arguments details

preview_player
Показать описание
This video explain an important concept of Java : Java Varargs.
The varargs allows the method to accept zero or multiple arguments.
Before varargs either we use overloaded method or take array as the method parameter but it was clumsy and it leads to the maintenance problem.
If we don't know how many argument we will have to pass in the method, This is the better approach.

Like us:
Рекомендации по теме