22.9k views
4 votes
In a method heading, there are two kinds of return types. One is a void type, meaning that the method will not return a value. The other is a reference type or a primitive type, meaning that when the method finishes executing, it will return a value of the type indicated by the.

a) Method's input

b) Method's return type

c) Method's access modifier

d) Method's name

User Svannoy
by
8.3k points

1 Answer

6 votes

Final answer:

The return type in a method heading refers to the type of value that a method will return when it finishes executing. It can be void or a reference/primitive type.

Step-by-step explanation:

In a method heading, the return type refers to the type of value that a method will return when it finishes executing. There are two kinds of return types: void and reference/primitive types.

Void means that the method will not return a value, while reference/primitive types indicate that the method will return a value of that specific type. The return type is specified after the method's access modifier and before the method's name.

User Theedchen
by
9.2k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.