What is parameters and how it declared?
Parameters are variables defined in the method declaration after the method name, inside the parentheses. This includes primitive types such as int, float, boolean, etc, and non-primitive or object types such as an array, String, etc.
Return type
In methods we can write only one return type because after returning the value wa can store only one variable.



Top comments (0)