in Education by
Which of these is correct about passing an argument by call-by-value process? (a) Copy of argument is made into the formal parameter of the subroutine (b) Reference to original argument is passed to formal parameter of the subroutine (c) Copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have effect on original argument (d) Reference to original argument is passed to formal parameter of the subroutine and changes made on parameters of subroutine have effect on original argument This question was addressed to me in a job interview. Origin of the question is Overloading Methods & Argument Passing in division Classes and Methods of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
Correct option is (a) Copy of argument is made into the formal parameter of the subroutine For explanation: When we pass an argument by call-by-value a copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have no effect on original argument, they remain the same.

Related questions

0 votes
    Which of these exceptions handles the situations when an illegal argument is used to invoke a method? (a) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these is correct way of calling a constructor having no parameters, of superclass A by subclass B? ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these process occur automatically by the java runtime system? (a) Serialization (b) Garbage ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these process occur automatically by java run time system? (a) Serialization (b) Memory allocation ( ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these is a process of writing the state of an object to a byte stream? (a) Serialization ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these is a process of extracting/removing the state of an object from a stream? (a) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    While finding the correct location for saving key value pair, how many times the key is hashed? (a) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these is not a correct statement? (a) A recursive method must have a base case (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these is not a correct statement? (a) Every class containing abstract method must be declared ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    How do we pass command line argument in Eclipse? (a) Arguments tab (b) Variable tab (c) Cannot ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these is a process of converting a simple data type into a class? (a) type wrapping (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these methods can be used to check whether the given value is a number or not? (a) isNaN ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these method of Double wrapper can be used to check whether a given value is infinite or not ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these methods of Character wrapper can be used to obtain the char value contained in Character object ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these class object uses the key to store value? (a) Dictionary (b) Map (c) Hashtable (d ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
...