The dot operator(.) is used to access the instance variables and methods of class objects.It is also used to access classes and sub-packages from a package.