• Post Reply Bookmark Topic Watch Topic
  • New Topic

how many parameters MAX ?

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I was asked to review someone's code .. I saw somewhere the guys were even passing parameters more than even 10 to 15.
What I am wondering..
1. I know java spec does not have any restriction on number of parameters to passed to a method.
2. Will it be really healthy to pass huge number of parameters ?
3. Down the line all the parameters will be pushed on to the stack.. Will it be not lots of stack operations involved ?

Can anyone highlight on number of parameters passing to a method ?
Thanks in Advance,
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!