Basic Java Programming

Average Rating
0 out of 5 stars. 0 votes.

If a Java method begins with “double someMethod (String input)” then what is double?

Selected: a. the data type returned by the method This answer is correct.
b. the data type of the passed parameter
c. the name of the method
d. an indicator that the String will be doubled in size

Correct. The item preceding the name of the method (i.e. double) is the data type that will be returned by the method.

Leave a Reply

Your email address will not be published. Required fields are marked *