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
Are arrays dynamic in java?
Write a program to print 15 random numbers using foreach of java 8?
What are the uses of java?
What is anagram in java?
How do you add an element to a set in java?
Compare java and python.
Explain about interrupt() method of thread class ?
Can a class declared as private be accessed outside it’s package?
What is the purpose of declaring a variable as final?
Explain purpose of sleep() method in java?
what is comparable and comparator interface?
What is the java idl system?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
Is java se open source?
What is difference between printf and scanf?