Computer Applications
Parameters that are passed to the called method during the method call are termed as …………… parameters.
Answer
actual
Reason — Parameters that are passed to the called method during the method call are termed as actual parameters.
These are the real values provided as input to the method.
For example:
public void display(int x) {
System.out.println(x);
}
public static void main(String args[]) {
display(5); // Here, `5` is the actual parameter.
}
Related Questions
Method prototype for the method compute which accepts two integer arguments and returns true/false.
- void compute (int a, int b)
- boolean compute (int a, int b)
- Boolean compute (int a,b)
- int compute (int a, int b)
Design a class to overload a function series( ) as follows:
(a) void series (int x, int n) – To display the sum of the series given below:
x1 + x2 + x3 + ………. xn terms
(b) void series (int p) – To display the following series:
0, 7, 26, 63 ………. p terms
(c) void series () – To display the sum of the series given below:
1/2 + 1/3 + 1/4 + ………. 1/10
Invoking a method by passing the objects of a class is termed as:
- Call by reference
- Call by value
- Call by method
- Call by constructor