Java, Java8, Java21, Java17, Migration.
UserNotificationService service. // This declares a new module named module com.socialnetwork.core { // This specifies that the core module requires external module as a dependency. requires com.socialnetwork.external; // This exports the package api from core module, making its public API