What is the difference between parameters and arguments ?
Answers were Sorted based on User's Feedback
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 |
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 |
Which collection is best for sorting in java?
Name the immediate superclass of the MenuComponent class?
what is j2se
Explain a situation where finally block will not be executed?
How to implement Singleton
What is arrays aslist in java?
What is the difference between constructor and method?
Name few "optional" classes introduced with java 8 ?
What is the benefit of inner classes in java?
Is upper case in java?
Why java is a platform independent? Explain
What is the difference between processes and threads?