What is the difference between parameters and arguments ?
Answer Posted / 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 View All Answers
Can we write class inside a class in java?
Why do I need to declare the type of a variable in java?
What is the difference between stream and buffer?
What is the latest version of java?
How dead lock situation occurs in java and how you can identify it?
Can we have return statement in finally clause? What will happen?
How does the garbage collector works in java?
What is local variable and instance variable?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What does %4d mean in java?
Can a final variable be initialized in constructor?
Java Compiler is stored in JDK, JRE or JVM?
Are arrays immutable in java?
Does set allows null in java?
Does chrome use java?