Java Programming Basics Review Notes Unit V

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.