Java
Which of t ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which of the following methods are declared correctly?
void doSmth (Object ... args) {}
void doAnyth (int i, Object ... args) {}
void confirm (Object ... args, int i) {}
void setRate (int ... i, float ... f) {}
void modifyTotal (Object ... args) {}
Explanation
Formal parameter that describes a variable number of method's arguments may be used only once, and it should be placed last.
methods
varargs
1
(1)
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
Is it possible to refer to a private method of some class from another instance ...
What will be printed as a result of the following code execution? ...
What will be the result of the following code compilation and execution? ...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
What will be the result of the following program execution? ...
What is the result of the compilation and execution of the following code with t...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment