This topic contains a solution. Click here to go to the answer

Author Question: Which of the following are valid array declarations? (Read 22 times)

rayancarla1

  • Hero Member
  • *****
  • Posts: 571

Question 1

An array can be used in which of the following ways?
◦ as a return value of a method
◦ as a local variable
◦ as a parameter of a method
◦ all of the above

Question 2

Which of the following are valid array declarations?
◦ char[] charArray = new char[26];
◦ char[] charArray = "Computer Science";
◦ int[] words = new words[10];
◦ double[3] nums = {3.5, 35.1, 32.0};


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by rayancarla1 on May 6, 2020

itsakadoozi

  • Sr. Member
  • ****
  • Posts: 317
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




rayancarla1

  • Member
  • Posts: 571
Reply 2 on: May 6, 2020
Excellent


amynguyen1221

  • Member
  • Posts: 355
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

People often find it difficult to accept the idea that bacteria can be beneficial and improve health. Lactic acid bacteria are good, and when eaten, these bacteria improve health and increase longevity. These bacteria included in foods such as yogurt.

Did you know?

Hippocrates noted that blood separates into four differently colored liquids when removed from the body and examined: a pure red liquid mixed with white liquid material with a yellow-colored froth at the top and a black substance that settles underneath; he named these the four humors (for blood, phlegm, yellow bile, and black bile).

Did you know?

Adults are resistant to the bacterium that causes Botulism. These bacteria thrive in honey – therefore, honey should never be given to infants since their immune systems are not yet resistant.

Did you know?

Parkinson's disease is both chronic and progressive. This means that it persists over a long period of time and that its symptoms grow worse over time.

Did you know?

When blood is deoxygenated and flowing back to the heart through the veins, it is dark reddish-blue in color. Blood in the arteries that is oxygenated and flowing out to the body is bright red. Whereas arterial blood comes out in spurts, venous blood flows.

For a complete list of videos, visit our video library