ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The varrags allows the method to accept zero or muliple arguments
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -Parameters are specified after the method name, inside the parentheses. You can add as many parameters as you want, just separate them with a comma.
Detailed explanation-2: -A method that takes variable number of arguments is called a variable-arity method, or simply a varargs method.
Detailed explanation-3: -There is no maximum limit to pass parameters or arguments to a user defined function. But for a pre-defined function it depends.
There is 1 question to complete.