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

Which package is always imported by default?

0 Answers  


What are the standards to place package statement within a source code file?

1 Answers  


What is return keyword in java?

0 Answers  


Can we return null in java?

0 Answers  


What happens if we don’t define serial version uid?

0 Answers  


What is the life cycle of Servlet?

3 Answers  


What is difference between hashset and hashmap in java?

0 Answers  


Define canvas?

0 Answers  


What is method Overloading in the perspective of OOPS?

6 Answers  


What is difference between checked and unchecked exception in java?

0 Answers  


What are the two main uses of volatile in Java?

0 Answers  


Define how objects are stored in java?

0 Answers  


Categories