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

What is a string token?

539


Explain different types of thread priorities ?

626


Can we clone singleton object in java?

575


Mention a package that is used for linked list class in java.

529


What interface is extended by awt event listeners?

598






What is a java list?

587


How do you define a parameter?

585


What is meant by method overriding?

549


What is subsequence of a string?

607


What is regex used for?

550


How to retrieve data from database in java using arraylist?

532


Explain method local inner classes ?

597


How to implement a multithreaded applet?

2206


What is a conditional equation?

566


What programs use java?

474