Wednesday, 13 January 2016

Java Tutorial : Java Interface (static method)

Click here to watch in Youtube :

Click the below Image to Enlarge
Java Tutorial : Java Interface (static method)
interface InterfaceA
    void sayWelcome();
    static void sayHello()
        System.out.println("Static hello by InterfaceA...");
public class MyClass implements InterfaceA

    public void sayWelcome()

public class InterfaceTest

    public static void main(String[] args)
         * The static method can only be called through the interface or class
         * type reference, not an instance variable.

Static hello by InterfaceA...
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