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


Please Help Members By Posting Answers For Below Questions

What is user defined exception in Java?

607


What is class forname?

540


What is array and arraylist in java?

525


How many classes can any class inherit java?

504


Can a hashset contain duplicates java?

492






Difference between current previous versions of Java?

553


What is the base class for error and exception?

551


Can we use this () and super () in a method?

527


Program to Find the second largest element in an array.

580


explain what is transient variable in java?

620


What are the restrictions imposed on method overriding?

548


What are the advantages of java over C++?

711


What are loops in java?

546


Which number is denoted by leading 0x or 0x in java?

553


What is the base class of all classes?

565