• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is meant by "Object... k"

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across a syntax in java "Object... k".Please explain about this.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15441
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic