The "Three Dots" in java is called the Variable Arguments or varargs. It allows the method to accept zero or multiple arguments. Varargs are very helpful if you don't know how many arguments you will have to pass in the method.
For Example:
abc(); // Likely useless, but possible
abc("x", "y", "z");
abc("xyz");
abc(new String[]{"x", "y", "z"});
But one thing you must not is, the argument that gets the ... must be the last in the method signature. In simpler terms,
abc (int i, String... strings) is correct, whereas:
abc(String... strings, int i) is wrong.
To know more about Java, join our Java certification course online.
Thanks