Virtusa Written Test Qs.(JAVA Programming) :: Basic Concepts - Discussion
55 / 119
A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the result?
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.
Asked In ::
25 Apr, 2019 12:10 AM
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
Please Login First Click Here