vararg in Java

A method may use a vararg parameter (variable argument) as if it is an array. It is a little different than an array, though. A vararg parameter must be the last element in a method’s parameter list. This implies you are only allowed to have one vararg parameter per method. It's legal to have other parameters in a method that uses a vararg. The vararg must be the last parameter in the method's signature, and you can have only one vararg in a method.
When you declare a vararg parameter, you must specify the type of the argument(s) this parameter of your method can receive. (This can be a primitive type or an object type.) To declare a method using a vararg parameter, you follow the type with an ellipsis (...), a space, and then the name of the array that will hold the parameters received.
When calling a method with a vararg parameter, you have a choice. You can pass in an array, or you can list the elements of the array and let Java create it for you. it is possible to pass null explicitly.