aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Var args question... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Var args question..." Watch "Var args question..." New topic
Author

Var args question...

John Brown
Greenhorn

Joined: Jan 12, 2007
Posts: 2


How many compilation errors in the following code?

a) No compilation error
b) 2
c) 4
[ January 12, 2007: Message edited by: John Brown ]
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6603
    
    1

Should be easy to find out shouldnt it ?


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
John Brown
Greenhorn

Joined: Jan 12, 2007
Posts: 2
Easy with a compiler of course. This is not a mock exam question, I was just playing around with var args...

Why are var args ambiguous in the code sample?
[ January 12, 2007: Message edited by: John Brown ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Var args question...
 
Similar Threads
Need Help
overloading
Var Arguments
BETA: Method resolving, un/boxing varargs mock question
what is int... refer to?