Wednesday, 23 December 2015

Java Tutorial : Java Class Methods or Static Methods

Click here to watch in Youtube :

Click the below Image to Enlarge
Java Tutorial : Java Class Methods or Static Methods
public class ClassMethodTest

    public static void main(String[] args)

        ClassMethodTest classMethodTest = new ClassMethodTest();

         * You can also refer to static methods with an object reference like
         * below. but this is discouraged because it does not make it clear that
         * they are class methods.

     * Static methods, which have the static modifier in their declarations,
     * should be invoked with the class name, without the need for creating an
     * instance of the class.
    public static void display(String str)

Click the below link to download the code:

Github Link:

Bitbucket Link:

See also:
  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment

    Google+ Followers

    Google+ Badge