Log In Register

Units


Overloading Methods & Argument Passing - Questions and Answers

 

Practice these Overloading Methods & Argument Passing under Java Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Overloading Methods & Argument Passing for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Overloading Methods & Argument Passing of Java Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge Java Programming specifically Overloading Methods & Argument Passing.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Overloading Methods & Argument Passing under Java Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Overloading Methods & Argument Passing topic of Java Programming:

 

1. Which of these is correct about passing an argument by call-by-value process?

Answer: Option A

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.

2. What is process of defining two or more methods within same class that have same name but different parameters declaration?

Answer: Option A

Explanation:
Two or more methods can have same name as long as their parameters declaration is different, the methods are said to be overloaded and process is called method overloading. Method overloading is a way by which Java implements polymorphism.

3. Which of these can be overloaded?

Answer: Option C

Explanation:

4. What is the process of defining a method in terms of itself, that is a method that calls itself?

Answer: Option D

Explanation:

5. Which of the following statements are incorrect?

Answer: Option C

Explanation:
finalize() method is called just prior to garbage collection. It is not called when object goes out of scope.