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 the base class of all exception classes in java?

0 Answers  


Is set thread safe java?

0 Answers  


What are the four pillars of java?

0 Answers  


Why use string handling in Java?

0 Answers   HCL,


How do you check if a string contains only numeric digits?

0 Answers  






What is design pattern and there types?

2 Answers   Cap Gemini,


Break statement can be used as labels in java?

0 Answers  


What’s the difference between the methods sleep() and wait()?

0 Answers  


why pointer is not used in java?

3 Answers  


What is the multi-catch block in java?

0 Answers  


Why java doesn’t support multiple inheritances?

0 Answers  


What is the difference between panel and frame ?

7 Answers   HCL, IBM, Raim Techno Solutions,


Categories