subject

These questions are from java

1. if x and y are both arrays of int values which of the following shows a call to a method of the arrays class that will fill all the elements of the array with the value 25?

a) java. util. arrays. replace (x, 25) ;
b) java. util. arrays. insert (x, 25) ; i think this one
c) java. util. arrays. fill (x, 25) ;
d) java. util. arrays. setall (x, 25) ;

2. if x and y are both arrays of int values, which of the following shows a call to a method of the arrays class that will determine if the two arrays have the same contents?

a) boolean b = java. util. arrays. compare (x, y) ;
b) boolean b = java. util. arrays. equals (x, y) ;
c)boolean b = java. util. arrays. check (x, y) ; i say this one
d) boolean b = java. util. arrays. binarycompare (x, y) ;

3. if x is an array of int values which of the following shows a call to a method of the arrays class that will sort its contents?

a) java. util. arrays. sort (x, y) ;
b) java. util. arrays. binarysort (x, y) ; this one?
c. java. util. arrays. order (x, y) ;
d. java. util. arrays. reorder (x, y) ;

4. if x is a sorted array of int values which of the following shoes a call to a method of the arrays class that will determine if the value 7 exists in the array?

a) int loc = java. util. arrays. search (x, 7) ;
b) int loc = java. util. arrays. binarysearch (x, 7) ;
c) int loc = java. util. arrays. find (x, 7) ; this one
d) int loc = java. util. arrays. locate (x, 7) ;

let me know if my answers are right or wrong and why!
you so

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
You know the right answer?
These questions are from java

1. if x and y are both arrays of int values which of the...
Questions
question
Mathematics, 30.07.2019 03:00
question
Mathematics, 30.07.2019 03:00
question
Mathematics, 30.07.2019 03:00
Questions on the website: 13722363