For is to perform number of iteration where as foreach used for collection of objects.