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, 21.06.2019 22:50
Before you enter an intersection on a green light make sure
Answers: 2
question
Computers and Technology, 22.06.2019 10:40
Nims is applicable to all stakeholders with incident related responsibilities. true or false
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
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, 01.04.2020 21:56
question
Mathematics, 01.04.2020 21:56
question
Arts, 01.04.2020 21:56
question
Chemistry, 01.04.2020 21:56
question
Mathematics, 01.04.2020 21:56