Given three classes that successfully compile

package com.org;
public sealed class UserLogs permits com.infy.Admin, com.manager.InfyManager {
}

package com.infy;
import com.org.UserLogs;
public final class Admin extends UserLogs {
}

package com.manager;
import com.org.UserLogs;
public final class InfyManager extends UserLogs {
}

Which of the below statement is correct?

The classes must belong to the unnamed module.

The classes must belong to the same unnamed or named module.

The classes must belong to a single named module.

The classes may belong to different named modules.

Correct Option - c

To get all Infosys Certified Java SE 17 Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in