What are parameters for in Java?

Parameters and Arguments Parameters act as variables inside the method . Parameters are specified after the method name, inside the parentheses. You can add as many parameters as you want, just separate them with a comma. The following example has a method that takes a String called fname as parameter.

Sizin İçin Seçtik  What is the minimum number of classes in a Java program?

Leave a Reply

Your email address will not be published. Required fields are marked *