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

Which is faster call by value or call by reference?

706


What is the difference between static class and normal class?

751


Name some OOPS Concepts in Java?

837


What is a method in java?

727


What is the arraylist in java?

752


How can the checkbox class be used to create a radio button?

761


Is there any difference between nested classes and inner classes?

815


If a variable is declared as private, where may the variable be accessed?

809


Explain when classnotfoundexception will be raised ?

803


How does hashset works in java?

758


How do you override a method?

741


What is finally and finalize in java?

805


What is the static block?

803


What is bitwise complement?

728


What is sorting algorithm in java?

769