1.method Header:modifier, return value type, method signature (method name, parameter) method Body2.value-returning method void Methodmethod overloadingambiguous Invocation:max (int,double) max (double,int) 3.formal parameteractual Parameterparameter listparameter order Associationpass-by-value4.scope of Variablelocal Scope5. Math Math class Trigonometric method:sin, cos, tan, ASIN, ACOs, Atan, Toradians, todegreesexponent method:exp, log, log10, pow, s Qrtservice:ceil, Floor, rint, Round,min,max,abs,random6.divide-and-conquer:stepwise refinementstubkeyword:actual Parameterargumentambiguous invocationdivide and Conquerformal parameter:meterinformation Hidingmethodmethod Abstractionmethod Overloadingmethod Signaturemodifierpass-by-valueparameterreturn Typereturn Valuescope of Variablestepwise refinementstub: To be perfected method 5.1 enhanced modularity and reusability modifier return_value_type method_name method_parameter_ List class name. method name or Instantiation object. Method Name 5.2void5.3 can be 5.4 not necessarily 5.5java compilation error can, no value will 5.10formal parameter: The variable defined in the method header actual parameter: Called when the value of the parameter metHod Signature: Method name + parameter 5.110;2; 2 4; 2 4 8; 2 4 8 16; 2 4 8 16 32; 2 4 8 16 32 64; Before the call, variable times are 3Welcome to java! Welcome to java! Welcome to java! After the call,variable times are 3;1 2 1 2 1 4 2 1 I is 4;5.12.......5.13 a function that defines different method bodies with different methods to sign the same method name; 5.14 overload conflicts 5.15 local and formal parameters Life conflict
Java Programming Basics Review Notes Unit V