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


Please Help Members By Posting Answers For Below Questions

Are arrays dynamic in java?

534


Write a program to print 15 random numbers using foreach of java 8?

543


What are the uses of java?

568


What is anagram in java?

517


How do you add an element to a set in java?

497






Compare java and python.

577


Explain about interrupt() method of thread class ?

660


Can a class declared as private be accessed outside it’s package?

510


What is the purpose of declaring a variable as final?

485


Explain purpose of sleep() method in java?

615


what is comparable and comparator interface?

575


What is the java idl system?

581


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?

692


Is java se open source?

567


What is difference between printf and scanf?

516