Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
var-args conflict in Overloading
Ram Narayan.M
Ranch Hand
Posts: 247
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
void fun(Integer ...i) { } void fun(double ...i) { } fun(2);
This ends up in compiler error , why the ambiguity raises in this case?...
Why the
Java
compiler is not going for primitive type var-args since the processing is not costly when comparing to Wrapper class type var-args?...
SCJP 6 [SCJP - Old is Gold]
Ankit Garg
Sheriff
Posts: 9707
43
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
See the rule number 4 in
this thread
...
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
Sunny Bhandari
Ranch Hand
Posts: 448
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This has been asked so many times. You can use the search functionality of this forum!!
Java Experience
Ram Narayan.M
Ranch Hand
Posts: 247
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Ankit
SCJP 6 [SCJP - Old is Gold]
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
compile time constant
Compile error
Var args question...
Varargs overloading problem
regarding generic, var-arg overload
More...