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
What is "this" keyword in java? Explain
Explain what is encapsulation?
Explain notify() method of object class ?
When can we say that threads are not lightweight process in java?
What does a za z0 9 mean?
Why is singleton instance static?
Are arrays immutable in java?
how we can make a write-only class in java?
How does indexof work?
What is the java project architecture?
What is difference between next () and nextline () in java?
what is synchronization? : Java thread
Variables used in a switch statement can be used with which datatypes?
How does varargs work in java?
What is the difference between static method and instance method in Java?