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

Author Question: Which of the following are valid array declarations? (Read 25 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
Thanks for the timely response, appreciate it


xoxo123

  • Member
  • Posts: 335
Reply 3 on: Yesterday
Excellent

 

Did you know?

The U.S. Preventive Services Task Force recommends that all women age 65 years of age or older should be screened with bone densitometry.

Did you know?

More than 34,000 trademarked medication names and more than 10,000 generic medication names are in use in the United States.

Did you know?

More than 2,500 barbiturates have been synthesized. At the height of their popularity, about 50 were marketed for human use.

Did you know?

Though “Krazy Glue” or “Super Glue” has the ability to seal small wounds, it is not recommended for this purpose since it contains many substances that should not enter the body through the skin, and may be harmful.

Did you know?

Street names for barbiturates include reds, red devils, yellow jackets, blue heavens, Christmas trees, and rainbows. They are commonly referred to as downers.

For a complete list of videos, visit our video library