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

Author Question: Which of the following are valid array declarations? (Read 34 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
:D TYSM


alexanderhamilton

  • Member
  • Posts: 334
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Common abbreviations that cause medication errors include U (unit), mg (milligram), QD (every day), SC (subcutaneous), TIW (three times per week), D/C (discharge or discontinue), HS (at bedtime or "hours of sleep"), cc (cubic centimeters), and AU (each ear).

Did you know?

Medication errors are more common among seriously ill patients than with those with minor conditions.

Did you know?

Glaucoma is a leading cause of blindness. As of yet, there is no cure. Everyone is at risk, and there may be no warning signs. It is six to eight times more common in African Americans than in whites. The best and most effective way to detect glaucoma is to receive a dilated eye examination.

Did you know?

Calcitonin is a naturally occurring hormone. In women who are at least 5 years beyond menopause, it slows bone loss and increases spinal bone density.

Did you know?

Most fungi that pathogenically affect humans live in soil. If a person is not healthy, has an open wound, or is immunocompromised, a fungal infection can be very aggressive.

For a complete list of videos, visit our video library