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


Please Help Members By Posting Answers For Below Questions

What is n in java?

535


What is the structure of java?

505


What does += mean coding?

507


What is a function easy definition?

525


Does .length start 0 java?

561






What's a method in programming?

543


Can sleep() method causes another thread to sleep?

562


What is thread safe in java?

544


What is lifetime variable?

521


What invokes a thread's run() method in java programming?

561


Can It is possible to synchronize the constructor of a Java Class?

590


What do u mean by variable?

559


What is meant by bytecode?

572


What is a final class in java?

539


Can a class have multiple subclasses?

581