Java
How a meth ...
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
How a method "sort" can be declared, when there is an example of its call:
sort(new int[3]);
Specify all appropriate options
void sort(Integer[] x){ }
Object sort(Object x){ return 0; }
int sort(int x[]) { }
String sort(int...x){ return null; }
double sort(int[] x){ return 0; }
Explanation
All of the arrays are
Object
instances, and functions with variable number of parameters can accept array directly
arrays
1
(1)
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
Which of the following lines will compile without errors?...
Is it possible to dynamically modify the size of an array?...
Select correct variable declarations....
What is the result of the following code execution? imp...
int[] x = new int[25] Which of statements...
Given a two-dimensional array (matrix) int[][] arr = {{...
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...
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: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment