Okay, I know I ask a lot. lol I just want to really understand this stuff inside-out so I could pass the OCJP, please bear with me. Thanks.
My study book is
SCJP Sun Certified Programmer for
Java 6 Study Guide Exam 310-065 by Kathy Sierra and Bert Bates. I'm a bit confused about something that is written about Variable Arguments Lists.
I will write the paragraph and mark the one that I have trouble in understanding:
- Var-arg type. When you declare a var-arg 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.) //Got it
- Basic syntax. To declare a method using a var-arg parameter, you follow the type with an ellipsis (...), a space, and then the name of the array that will hold the parameters received. //Got it
- Other parameters. It's legal to have other parameters in a method that uses a var-arg. //Um, can anyone rephrase this for me? I don't get it. . I thought it can only have one var-arg in a method.
- Var-arg limits. The var-arg must be the last parameter in the the method's signature, and you can have only one var-arg in a method. //Got it
Thanks.