Java/Kotlin is so popular, because of its core features like platform independence, automatic memory management, garbage collection, and security, which makes it suitable for building small or large scale enterprise applications that can run on any platform.
A very common Java application is for developing so-called APPLICATION BACKENDS,
which are the server-side applications that power client-side applications, such as web applications, mobile apps, and other web services, by providing business logic, database access, user authentication, and other services.
Client-side applications are usually developed using JavaScript, HTML,
and CSS and are also called APPLICATION FRONTENDS.