Difference between an argument and a parameter?
Answer Posted / venkat
while we are declaring method this parameters
ex: public void test(int a,int b)
{}= this is parameters
while we are passing values through object refernce this
arguments
ex: A a=new A();
a.test(5,5);=this is arguments
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What is gui programming?
which class is the wait() method defined in? : Java thread
Can we define constructor in inner class?
Is int primitive data type?
Is arraylist an object in java?
What is class??
What is nan in java?
What is the use of a copy constructor?
What is a variable analysis?
What are the difference between composition and inheritance in java?
What does s mean in regex?
What is an infinite loop?
Why pass by reference is not possible in java?
Is heap stored in ram?
How many arguments can a method have java?