1 explain the difference between formal parameters and actual parameters 2 how does 5346574

1. Explain the difference between formal parameters and actual parameters.

2. How does Java transmit data by means of parameters?

3. Define a method sum. This method expects two integers as parameters and returns the sum of the numbers ranging from the first integer to the second one.

4. What is the purpose of local variables?

5. What are the lifetimes of an instance variable, a local variable, and a parameter?

6. What is shadowing? Give an example and describe the problems that shadowing might cause in a program.

7. Consider the following code segment.

Public class SomeClass{

Private int a, b;

Public void aMutator(int x, y){

int c, d;

}

}

a. List the instance variables, parameters, and the local variables in this code.

b. Describe the scope of each variable or parameter.

c. Describe the lifetime of each variable or parameter.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now