What is the difference between the "Main Index Template"(index.php) and HomePage(front-page.php)

Just wonder what is the difference between the Main Index Template index.php and HomePage front-page.php.

It seems that front-page.php is displayed when visiting https://www.example.com/, but index.php seems also to be served for such a purpose.

If index.php is not used when visiting https://www.example.com, when it will be used?

Topic template-hierarchy Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.