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 a module function?

547


What is the difference between class & object?

547


What are the main uses of java?

513


Why is logger singleton?

551


What value is a variable of the string type automatically initialized?

601






Which methods cannot be overridden in java?

523


What is a char in java?

524


How to perform merge sort in java?

574


What are latest features introduced with java 8?

576


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

543


Can a top level class be private or protected?

562


What does sprintf mean?

519


Why we do exception handling in java and how many types of exceptions are there?

537


Which is bigger double or float?

515


Should database connections be singleton?

557