• Post Reply Bookmark Topic Watch Topic
  • New Topic

varargs  RSS feed

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It is said there is no specific method for doIt(123); why ? second method has two int parameters however first one has only one.it is not enough to be a specific method ?

http://radio.javaranch.com/corey/2004/08/19/1092931618000.html
 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shalini Srivastav wrote:
It is said there is no specific method for doIt(123);


Firstly Shalini, the method call is

Shalini Srivastav wrote: why ? second method has two int parameters however first one has only one.it is not enough to be a specific method ?


Your doubts will clear if you read this

It has been very well explained by Corey McGlone and Ilja Preuss.



 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question does not seem to have anything to do with varargs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!