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 |
How is hashset defined in java?
What is hash in java?
Why are the methods of the Math class are static?
Is java call by reference?
What is Session reduplication and how its done?
What do you understand by access specifiers in Java?
How would you use Bubble Sort to sort the number of elements?
What is a nonetype?
What is java dot?
What is the use of default method in interface in java? Explain
What is the difference between this() and super() in java?
class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?