answersLogoWhite

0

What is parameter in java?

Updated: 8/11/2023
User Avatar

Wiki User

13y ago

Best Answer

It actually doesn't. You see... it actually takes the orange and once its completed its 340th task, it evaluates the juice out of it. Now, about the transmit part, Javas are actually mammals that used to exit a long while back.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

You pass parameters in java by using them in the method calls.

ex:

public String getName(int empNum) {

...

}

The above method takes an employee number as input and returns a name. so if we want to invoke this method we would pass parameters like this

String empName = getName(100);

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

It is the value that is passed to verify the location of the value.

webmaster at service.ztronics.com

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is parameter in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the purpose of Java Properties?

The Java Properties stores settings and configuration data such as user preferences or connection settings. It stores each parameter as a pair of strings, one being the name of the parameter and the other the value.


What is the main feature of the programming language Java Classpath?

Java Classpath is a parameter that tells the Java Virtual Machine or the Java Compiler, where to search for user-defined classes and packages on a computer.


What happens when you add primitive data type into a collection in java?

how do you get the value of the parameter in the applet


Which MATH classs features does not use any parameter or arguments in Java?

The fields Math.PI and Math.E.


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.


What is Procedural Abstraction?

java supports procedural abstraction by means of constructors and methods. in java constructor and methods are always components of particular class. java supports coping parameter only. procedural abstraction is a principle in which the particular language supports some features through which procedures are modelled in the class hiding other details.


Can you define multiple parameters for one method in java?

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.


Can a main method in java be overloaded?

Yes. The main method is just like any other java method and can be overloaded. But - Only the method with public static void main(String[] args) signature will get invoked when the class is run.


Is A query that prompts for input whenever it is run is a run-time query?

It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.It is referred to as a parameter query.


Write a program in java to find factorial of a number?

I suggest to use a for loop, more or less like this (assuming the parameter is "n"): product = 1; for (int i = 1; i <= n; i++) { product *= i; }


What is the parameter of the Earth?

what is the parameter of earth


Why and when should programmers use a constant reference parameter?

when we use that parameter as a global parameter and we used that parameter through out the program without changing