This class is used to check the network i.e. The internet connection is available or not.