What is the difference between parameters and arguments ?

Answers were Sorted based on User's Feedback



What is the difference between parameters and arguments ? ..

Answer / shadow

While defining method, variables passed in the method are
called parameters. While using those methods, values passed
to those variables are called arguments.....!

$HADOW

Is This Answer Correct ?    17 Yes 1 No

What is the difference between parameters and arguments ? ..

Answer / 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

More Core Java Interview Questions

What is a concrete classes? Is Java object class is concrete class?

0 Answers   Infosys,


What are the restrictions that are applied to the java static methods?

0 Answers  


Can you override static method in java?

1 Answers  


What is keyword and identifier?

0 Answers  


What is java developer skills?

0 Answers  






Differentiate between the constructors and methods in java?

0 Answers  


What is method overloading and method overriding?

0 Answers  


what is the major difference between linkedlist and arraylist in java?

0 Answers   IBS,


What is the difference between class forname and new?

0 Answers  


How do you clear an arraylist in java?

0 Answers  


Explain java heap space and garbage collection?

0 Answers  


What is multiple inheritance & can we implement it in java?

6 Answers   Satyam,


Categories