answersLogoWhite

0

The formal Java Language Specification does not list a hard limit on the number of formal parameters allowed. Generally, if you're worried that you might "run out" of parameter spaces, you will probably want to redesign your method.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is it possible to define two methods that have the same name but different parameters?

Yes. It is called Method Overloading in Java


What is function in java terminology?

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.


How do you uss static in java?

It is uss to define class and method of pogrom's.


What is the definition of method overloadind in java?

That means you have two (or more) methods with the same name, but with different signatures - that is, the number or types of parameters are different. The compiler will automatically choose the correct method, according to the parameters provided.


What is task of main method in Java?

All applications must start their execution from somewhere. In java that is the main method of a class.


What is the use of the parameter in java?

A parameter is a variable that is passed to a method. It is not specific to Java, and is used in almost all programming languages. The parameter is used by the method in whatever way that it wants. Example: public void add(int x, int y) { return x + y; } In this case, the parameters are two integers, x and y. They are passed to the method 'add' which returns the sum of the parameters.


How do you accept double variable in java?

If you mean to pass two parameters to a method, the method would have to include the two variables in its "signature". For example: myMethod(int a, int b) {...} To call the method, you also have to pass two parameters, in parentheses. For example: result = myMethod(x, y);


Can you define variables in interface in java?

yes we can define a variable in an interface in java.


Does passing static strings as parameters to a method create a copy of the String or passes its reference?

Java always follows a pass by value approach.


Which method is default by true in java?

I don't understand what you mean with "default by true"? Please clarify your question. A Java method can have zero or more parameters, and it must have one return value. Any of these can be declared as "boolean", in which case the value can be either true or false.


Where do you define the access specifier for a java method properties?

We define the access specifier of a function at the place of its method signature(The place we write the method's name).for example,public void sample(){}here "public" is the access specifier of function name-sample.


How many values can a method return in Java?

A method in java can declare only one return value and type at a time. For ex: a single method cannot have a code that returns a string in some cases and an integer in other cases. Java compiler does not let you do that. You can only have one return type for every method in java.