What is the general format of method in Java?

The method signature consists of the method name and the parameter list . Parameter List − The list of parameters, it is the type, order, and number of parameters of a method. These are optional, method may contain zero parameters. method body − The method body defines what the method does with the statements.

Sizin İçin Seçtik  What are the attributes of a class?

Leave a Reply

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

What is the general format of method in Java?

The method signature consists of the method name and the parameter list . Parameter List − The list of parameters, it is the type, order, and number of parameters of a method. These are optional, method may contain zero parameters. method body − The method body defines what the method does with the statements.

Sizin İçin Seçtik  What is the main class in Java?

Leave a Reply

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