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
How do you read a char in java?
Explain about varargs in java?
How do you escape json?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is compareto?
What is string subsequence method?
How do you use nextline in java?
What are the topics in core java?
Can a final variable be manipulated in java?
What is the difference between stream and buffer?
What is http client in java?
What is Recursion Function?
What is the largest number a double can hold?
What is hasnext in java?
Can a string be null?