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 does not allow duplicates in java?
What exactly is methodology?
How do you initialize an arraylist in java?
Can main() method in java can return any data?
what is instanceof operator used in java?
What is protected access modifier?
What is mysql driver class name?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
How do you check if a character in a string is a digit or letter?
What is a local block?
What is the method overriding?
How can you debug the Java code?