terryonsavage2538 terryonsavage2538
  • 03-07-2019
  • Computers and Technology
contestada

When a method returns an array reference, you include ____ with the return type in the method header.

a.
( )

b.
[ ]

c.
< >

d.
{ }

Respuesta :

Branta Branta
  • 15-07-2019

Answer:

b. []

Explanation:

Arrays are represented using [] . When a method returns an array reference, the method header contains an entry of the type <data-type>[].

For example, a method test which returns a reference to integer array and takes no parameters is of the form:

int[] test();

Similarly a method list_chars which takes a String as an argument and returns an array of chars has the form:

char[] list_chars(String s);

Answer Link

Otras preguntas

Triangle XYZ is reflected across the y-axis. Then its image is rotated 90° about the origin. What are the coordinates of the final image of point X under the co
Most absorption of nutrients occurs in the __________.
How to tell if something is an electrolyte
ali and jake went on a cross country trip they took a train part of the way and took a bus the rest of the way they traveled a total of 1450 riding on the trai
Which statement is true?
What is the value of x?A. 155°B. 60°C. 35D. 25°​
The claim is that the proportion of peas with yellow pods is equal to 0.25​ (or 25%). The sample statistics from one experiment include 590 peas with 139 of the
Write a Java program that calculates and prints the monthly pay check for an employee. The net pay is calculated after taking the following deductions: Federal
NATO was formed...?
Find the? inverse, if it? exists, for the given matrix. [4 3] [3 6]