Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Var args question...

 
John Brown
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should be easy to find out shouldnt it ?
 
John Brown
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic