answersLogoWhite

0


Best Answer

They are synonyms.

Some people use the word 'argument' for the 'formal parameter' and 'parameter' for the 'actual parameter', others do on the other way around.

PS:

example for the formal parameters (function declaration):

int myfun (const char *s, int p);

example for the actual parameters (function calling):

myfun ("Hello", 44);

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

A variable is an entity that is used to store some value which may change anywhere in the program.

Parameter is the entity that is used to combine two or more variables.

int x=9,y=9;

here x and y are the two different variables.

x=x+y;

y=x+y;

here x & y is a parameter used to link two variables x & y.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

I believe it is two different names for the same thing.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between parameter and argument in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between java 2 and java 5?

They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.


Major difference between c and java?

Java is object oriented, C is not...


What is the difference between connectivity in java?

kamina


What is difference between connectivity in java?

kamina


What is the main difference between UNIX and JAVA?

Unix is an operating system, Java is a language.


Difference between recordset and resultset in java?

Rowset


What is the difference between JAD and JAR?

JAD-Java Application Description JAR-Java archive


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.


What is the data type of the parameter of the second version of the method?

Given that you haven't specified the method in question it is impossible to say what the parameter's data type would be. However, in statically typed languages such as Java, the method's signature will tell you specifically which data type is to be expected: void f (int x) { // expects an argument of type int // ... } void f (float x) { // expects an argument of type float // ... }


What is the purpose of Java Properties?

The Java Properties stores settings and configuration data such as user preferences or connection settings. It stores each parameter as a pair of strings, one being the name of the parameter and the other the value.


What difference between InputStreamReader and DatainputStream in java?

Both are same