Difference between parameters and arguments ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Difference between parameters and arguments ?Core Java
Ans. Parameters are the variables that the method is expected to receive along with the method call. Arguments are the values which are passed on while calling the methods.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     parameter   argument   method   function   parameter vs argument      basic


Related Questions

 Which of the following are valid declarations

1. void method(int... x){};
2. void method(int.. x){};
3. void method(int.. .x){};
4. void method(int ...x){};
5. void method(int... x){};
6. void method(int ... x){};
7. void method(int x, int... y){};
8. void method(int... x, int y){};
9. void method(int... x,int... y){};
 What is the difference between these two method declarations ?

private static void method(String[] arg)

and

private static void method(String... arg)
 Can we overload method as following ?

void method(int... x){};
void method(int[] x){};
  Which function is used to convert a JSON text into an object ?
  Which kind of memory is used for storing object member variables and function local variables ?
 How are values passed in Java ? By value or reference ?
 What are the advantages of using methods in Java ?
 Do you prefer using var args ?
 What is the difference between pop and peek function of stack ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: