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 a module function?
What is the difference between class & object?
What are the main uses of java?
Why is logger singleton?
What value is a variable of the string type automatically initialized?
Which methods cannot be overridden in java?
What is a char in java?
How to perform merge sort in java?
What are latest features introduced with java 8?
What are the difference between string, string builder, and string buffer in java?
Can a top level class be private or protected?
What does sprintf mean?
Why we do exception handling in java and how many types of exceptions are there?
Which is bigger double or float?
Should database connections be singleton?