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
Can we make the abstract methods static in java?
What is definition and declaration?
Can we have any code between try and catch blocks?
What all methods are used to prevent thread execution ?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
Convert a BST into a DLL and DLL to BST in place.
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What is re-factoring in software?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
Can a static method be overridden in java?
What is the purpose of using java.lang.class class?
Define locale.
When we should use serialization?
What is xslt in java?
What exactly is java?