• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is meant by "Object... k"  RSS feed

 
jacob deiter
Ranch Hand
Posts: 585
  • 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
Sheriff
Posts: 15865
81
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
Boost this thread!