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 |
What is the base class of all exception classes in java?
Is set thread safe java?
What are the four pillars of java?
Why use string handling in Java?
How do you check if a string contains only numeric digits?
What is design pattern and there types?
Break statement can be used as labels in java?
What’s the difference between the methods sleep() and wait()?
why pointer is not used in java?
What is the multi-catch block in java?
Why java doesn’t support multiple inheritances?
What is the difference between panel and frame ?
7 Answers HCL, IBM, Raim Techno Solutions,