JAVA0138 20 parameters defined for method (maximum: 5)

Hi,

 JAVA0138 20 parameters defined for method (maximum: 5) is this impact the code ?

i mean reduce the speed ? or any other impact ?
LVL 20
Sathish David  Kumar NArchitectAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
It's more a question of readability, but yes - the more parameters, the more overhead

http://www.enerjy.com/explorer/help/rules/JAVA0138.html
0
 
objectsConnect With a Mentor Commented:
> i mean reduce the speed ? or any other impact ?

no, it won't reduce speed., but it makes the method confusing for the developer.
to fix package the parameters into a bean and pass the bean as a a parameter instead, thus reducing the number of parameters,
0
 
for_yanConnect With a Mentor Commented:
Also consider if some of these parameters would be more appropriate to be instance varaibles
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.