File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes What is meant by Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is meant by "Object... k"" Watch "What is meant by "Object... k"" New topic

What is meant by "Object... k"

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
I came across a syntax in java "Object... k".Please explain about this.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14722

It's a method with a variable number of arguments. This is a new feature which was introduced in Java 5.

See this for more info: Java SE 5 - Varargs

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: What is meant by "Object... k"