ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What is/are the rules for varargs in JavaI) There can be only one variable argument in the method.II) Variable argument (varargs) must be the last argument.
|
Only I is True
|
|
Only II is True
|
|
Both I and II are True
|
|
Both I and II are False
|
Explanation:
Detailed explanation-1: -Each method can only have one varargs parameter. The varargs argument must be the last parameter.
There is 1 question to complete.