subject

What is the output of the following program? public class arrayExample
{
public static void main(String[] args) {
int myTest[] = {100,1};
int test2[]={12,13,14};
System. out. println(myTest[1]+1);
System. out. println(myTest[1]+test2[0]);
}
}

The output of the first print statement is (blank),

A. 100
B. 2
C. 1
D. 12

and the output of the second statement is (blank).

A. 13
B. 12
C. 14
D. 1

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:40
Write a function 'music_func' that takes 3 parameters -- music type, music group, vocalist -- and prints them all out as shown in the example below. in case no input is provided by the user, the function should assume these values for the parameters: "classic rock", "the beatles", "freddie mercury". for example: input: alternative rock,pearl jam,chris cornell output: the best kind of music is alternative rock the best music group is pearl jam the best lead vocalist is chris cornell note: the print statements will go inside the for example: print("the best kind of music is"
Answers: 2
question
Computers and Technology, 22.06.2019 10:40
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
You know the right answer?
What is the output of the following program? public class arrayExample
{
public static...
Questions
question
Geography, 15.11.2020 16:50
question
Physics, 15.11.2020 16:50
question
Biology, 15.11.2020 17:00
question
Mathematics, 15.11.2020 17:00
question
English, 15.11.2020 17:00
Questions on the website: 13722361