1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
astraxan [27]
2 years ago
7

What is wrong with each of the following code segments? int[] values; for (int i = 0; i < values.length; i++) { values[i] = i

* i; }
Computers and Technology
1 answer:
tino4ka555 [31]2 years ago
7 0

Answer:

values have been declared but not initialized nor allocated memory. So you are not allowed to use "values.length"

You might be interested in
What are the differences, physically and logically, between the two printing configurations: Network-attached Printing and Netwo
evablogger [386]

Answer:

They are essentially the same physically. Logically, the print jobs are handled differently.

Explanation:

7 0
3 years ago
Describe how you center text.
Annette [7]
On the bottom corner you can see something that looks like this:
|--- | -- | ---|
Click the middle one?
7 0
3 years ago
Read 2 more answers
A type of graph that uses horizontal bars to compare data is called a
sergiy2304 [10]
The answer is A) a bar graph

6 0
3 years ago
Read 2 more answers
Analyze the following code: class Test { public static void main(String[] args) { System.out.println(xMethod((double)5)); } publ
SashulF [63]

Answer:

This code will give Error.

Explanation:

This code will give error because we have passed the argument 5 as double by using typecasting.We have two methods named xMethod but with arguments as int and long none of them has argument as double.The compiler will not be able to find the method with double argument.So this code will not run because of this reason.

3 0
3 years ago
The major difference between a calculator and a computer, when performing calculations, is that a
tester [92]
A calculator is slower and needs more human assistance
7 0
3 years ago
Read 2 more answers
Other questions:
  • The ________ phase in a project involves documenting lessons learned from the project, so that the experience is useful to other
    13·1 answer
  • Assume that the following variables have been defined in a program: int x = 10; int y = 20; int z = 30; Write a cout statement t
    11·1 answer
  • Write the definition of a method min that has two int parameters and returns the smaller.
    9·1 answer
  • It is necessary tto save updates often when working in google docs? True or false
    11·2 answers
  • Classify the various scenarios in a web development team that is creating a website for a client according to the priority level
    9·1 answer
  • Create an online order form for a car rental store and include the following items: input text box to enter the number of days i
    14·1 answer
  • Describe accessibility in Windows 7 ​
    13·1 answer
  • Difference between switch and switch lite
    10·1 answer
  • Write a Pascal program that will prompt the user to enter the radius of a circle.
    9·1 answer
  • Hypertext enables you to navigate through pieces of information by clicking the __________, that connect them.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!