Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

parameters/arguments  RSS feed

 
Ripan Karmakar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is limitation (mean max)of parameters/arguments that can be passed to a function???
 
Nanda Kishore
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean, the maximum number of arguments that can be passed to a method, then I think it is 256.
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This fails on 255 parameters, but 254 (0 to 253) does compile on 1.5

While this is very therapeutic (it's late in the evening for me) I consider this extremely bad programming.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!