These lines indicate that the package example contains a package serverscript which contains another package connector.Similarly for second line the serverscript package contains a package called as demo. To create a package file u have to write simply a line in the begining of the file. package packageName; And u have to create the directory with the packageName and keep ur file there.
Creating a package is as simple as declaring that a class, interface or enum definition belongs in a package as the first non-comment line of code in a source file.In this simple example, class Foo is a member of the fubar package.