IDNLearn.com provides a user-friendly platform for finding answers to your questions. Join our community to access reliable and comprehensive responses to your questions from experienced professionals.

What is the default return type of a method in Java language?

A.Void

B.Int

C.None

D.Short


Sagot :

Answer:

The default return data type in function is int

Answer: Option (b)

Explanation:

The default return data type in a function is int. In other words commonly if it is not explicitly mentioned the default return data type of a function by the compiler will be of an integer data type.

If the user does not mention a return data type or parameter type, then C programming language will inevitably make it an int.

mark me brainlist

im sure its option b!!