View RSS Feed

My Java Tips

  1. Method signatures

    by , 11-21-2011 at 05:52 PM (My Java Tips)
    In this post, I will present an interesting example related to method signature.

    Method signature comprise of the following:

    - method name
    - return type
    - input parameters
    - access modifier

    For example:

    Java Code:
    public Vector processText(String test, int id)
    Two methods in a class can have same name provided then have different parameters. Different parameters means different no of parameters and ...