JAVA0138 20 parameters defined for method (maximum: 5)

Posted on 2011-05-04
Last Modified: 2012-06-27

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

i mean reduce the speed ? or any other impact ?
    LVL 86

    Accepted Solution

    It's more a question of readability, but yes - the more parameters, the more overhead
    LVL 92

    Assisted Solution

    > 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,
    LVL 47

    Assisted Solution

    Also consider if some of these parameters would be more appropriate to be instance varaibles

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now