Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between an argument and a parameter?

Answer Posted / sagar

Whenever we are define a method with objects or references or variables then that objects or references or variables are called as parameters.

Whenever we are calling using that method with their objects or references or variable values through that class object is called arguments

Example :

class abc
{
public void display(int a,int b,)//where a and b are parameters.
{
System.out.println("The values of passed arguments are: a="+a+"b="+b);
}
public static void main(String args[])
{
abc a=new abc();
a.display(400,500);//where 400,500 are arguments.
}
}

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does A Class Inherit The Constructors Of Its Superclass?

1067


What is final keyword in java? Give an example.

1010


Can substring create new object?

1115


Describe what a thread-local variable is in java?

1008


What methods are used in Servlet?Applet communication?

2234


what are the states associated in the thread? : Java thread

1043


What does 3 dots mean in java?

977


What is the purpose of object oriented programming?

970


What are the difference between string, string builder, and string buffer in java?

1121


Is boolean a data type in java?

961


What is stack example?

1022


How does hashmap work in java ?

1044


What are the concepts of 'OOPS'?

1066


What does s mean in regex?

1010


What is get () in java?

1034