Wednesday, 2 September 2015

Java Tutorial : Java Package naming collision


Click here to watch in Youtube :
https://www.youtube.com/watch?v=A6IYji7Z0xA&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java Tutorial : Java Package naming collision 
Java Tutorial : Java Package naming collision 
HelloWorld.java
package mypack;

public class HelloWorld
{

    public static void main(String[] args)
    {
        System.out.println("Hello world Program of 'mypack' Package....");

    }

}

Output
Hello world Program of 'mypack' Package....

HelloWorld.java
package util;

public class HelloWorld
{

    public static void main(String[] args)
    {
        System.out.println("Hello world Program of 'util' Package....");

    }

}
Output
Hello world Program of 'util' Package....
To Download PackageDemoNamingCollision Project Click the below link
https://sites.google.com/site/javaee4321/java/PackageDemoNamingCollision.zip?attredirects=0&d=1

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
  • Google+ Followers

    Google+ Badge