Difference between an argument and a parameter?
Answer Posted / pankaj kaundal
In the method and function declaring valiable with data type
is known as parameater it is a refrence type.
void sum(int x, int y)//is parameter
and when it call and passing value is known as argument
like
object o=new object();
o.sum(12,20);//it is argument
| Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
What is singleton math?
What is the use of optional ?
What environment variables do I need to set on my machine in order to be able to run java programs?
How many bits is a char?
Is java se free?
What is a pointer and does java support pointers?
Can I declare class as static or private?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is a jagged array in java?
Write an algorithm for quick sort?
What is meant by memory leak?
hr interview how many minutes asking question
Which method must be implemented by all threads?
What is static data type in java?
Can we instantiate interface in java?