Symbol table is an important data structure used in a compiler. It is used to store the information about the occurrence of various entities such as objects, classes, variable name, interface, function names, etc. It is used by various phases of the compiler.