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

What is a classloader in java?

966


What are the restrictions that are applied to the java static methods?

938


What are the differences between graph and tree?

1072


What are default methods ?

994


What is fail fast in java?

1075


What is the final class modifier?

977


What are operators and its types?

1008


How do you sort a string in java?

910


What are local variables?

1014


how to split string in java?

1154


Can you call a method on a null object?

971


How do you compare arrays in java?

892


How long will it take to learn java?

942


Is class is a data type?

1032


What are the Main functions of Java?

1056