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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
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: 6662
    
    5

Should be easy to find out shouldnt it ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
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...