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 user defined exception in Java?
What is class forname?
What is array and arraylist in java?
How many classes can any class inherit java?
Can a hashset contain duplicates java?
Difference between current previous versions of Java?
What is the base class for error and exception?
Can we use this () and super () in a method?
Program to Find the second largest element in an array.
explain what is transient variable in java?
What are the restrictions imposed on method overriding?
What are the advantages of java over C++?
What are loops in java?
Which number is denoted by leading 0x or 0x in java?
What is the base class of all classes?