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

How do you read a char in java?

729


Explain about varargs in java?

896


How do you escape json?

780


Define how does a try statement determine which catch clause should be used to handle an exception?

831


What is compareto?

762


What is string subsequence method?

902


How do you use nextline in java?

719


What are the topics in core java?

835


Can a final variable be manipulated in java?

773


What is the difference between stream and buffer?

746


What is http client in java?

791


What is Recursion Function?

907


What is the largest number a double can hold?

801


What is hasnext in java?

802


Can a string be null?

763