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

Author Question: Which of the following are valid array declarations? (Read 23 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
Wow, this really help


Zebsrer

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

 

Did you know?

Despite claims by manufacturers, the supplement known as Ginkgo biloba was shown in a study of more than 3,000 participants to be ineffective in reducing development of dementia and Alzheimer’s disease in older people.

Did you know?

In 1844, Charles Goodyear obtained the first patent for a rubber condom.

Did you know?

In 2006, a generic antinausea drug named ondansetron was approved. It is used to stop nausea and vomiting associated with surgery, chemotherapy, and radiation therapy.

Did you know?

The top five reasons that children stay home from school are as follows: colds, stomach flu (gastroenteritis), ear infection (otitis media), pink eye (conjunctivitis), and sore throat.

Did you know?

Oxytocin is recommended only for pregnancies that have a medical reason for inducing labor (such as eclampsia) and is not recommended for elective procedures or for making the birthing process more convenient.

For a complete list of videos, visit our video library