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

How do you format in java?

0 Answers  


How to sort array in descending order in java?

0 Answers  


If try block is successfully executed, Then Is Finally block executed?

0 Answers   PUCIT,


why java is not supporting multiple inheritence?

3 Answers  


Define array. Tell me about 2-D array.

0 Answers   Agilent,






What is user defined exception?

4 Answers  


write a program to create an vector and listeterator.and value should be enter through keyboard.

1 Answers   Axcend,


What is an interface in java?

0 Answers  


What is Session reduplication and how its done?

0 Answers  


What are the types of literals?

0 Answers  


What is a method type?

0 Answers  


What is difference between add() and addelement() in vector?

0 Answers  


Categories