Virtusa Written Test Qs.(JAVA Programming) :: Basic Concepts - Discussion
Home > Freshers Archives > Virtusa Placement Questions & Answers > MCQs Questions Discussion
56 / 120
Choose the correct option.
A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the result?
ACompilation fails.
BThe third argument is given the value null.
CThe third argument is given the value zero.
DAn exception occurs when the method attempts to access the third argument.
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
We will be getting a compile-time error in the form-
required: int, int, int
found: int, int
This means if the requirement is to pass 3 inputs as arguments, then it's must to pass 3 arguments or else the compilation fails.
Read Full Answer
Report Error
Please Login First Click Here