The general form of the method declaration, which returns a value and takes parameters, is as follows: return_type MethodName(type1 param1, type2 param2, …, typeN paramN) { // method body – program code // … } MethodName – method name; return_type – the type returned by the method.