The dot operator( . ) is used to access the instance variables and methods of class objects. Example
it is also used to access classes and sub-packages from a package that I have discussed in middle.
new operator is used to create object of a class. We know that an object is nothing but a dynamic memory area which is created by JVM.
The general form is :