Monthly Archives: July 2009

symbolic link

Symbolic link (also symlink or soft link) is a special type of file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution. A symbolic link, also termed a soft link, is a special kind of file that points to another file, much like a shortcut in Windows or a Macintosh alias. Unlike a hard link, a symbolic link does not contain the data in the target file. It simply points to another entry somewhere in the file system. This difference gives symbolic links certain qualities that hard links do not have, such as the ability to link to directories, or to files on remote computers networked through NFS. Also, when you delete a target file, symbolic links to that file become unusable, whereas hard links preserve the contents of the file.

To create a symbolic link in Unix, at the Unix prompt, enter:

ln -s source_file myfile

ln -s source_directory

Dynamic Binding / Late Binding VS Static Binding / Early Binding

Static Binding: if the binding is occur at compile time of our source code is called static binding
Dynamic Binding: if the binding is occur when interpreter our class fine then that binding is called Dynamic Binding.

Statis Binding : Initialize the variable like private static HashMap map new HashMap();
Dynamic Binding: Initialize the variable like private HashMap map; and somewhere in the method do map new HashMap();

Read more about this