What is the difference between parameters and arguments ?

Answer Posted / sadikhasan palsaniya

when defining a method like
public static void show(int a,int b){}
here variable a and b is parameter.

public static void main(String...string){
show(10,20);
}

here 10 and 20 is argument for show method.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between a process and a program?

703


What is java basic concept?

635


What is e in java?

628


Write a program to check for a prime number in java?

650


What steps are taken when the OS shifts from one-thread execution to another?

1001






Is minecraft java edition free?

691


what is meant by abstract class?

732


Have you ever used hashtable and dictionary?

672


When we should use serialization?

657


Explain list interface?

603


What is api in java?

632


what is collatration?

2849


What is the difference between actual and formal parameters?

593


What are the 6 boolean operators?

651


What is the meaning of variable in research?

646