i don't remember which questions was it in your mock exam
but it said: automatic module can read classpath, how is it possible if classpath exports nothing
automatic module can read classpath?
Moderator: admin
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
-
- Site Admin
- Posts: 10403
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: automatic module can read classpath?
Where did you read that classpath exports nothing? Please read the topic from a textbook carefully and completely before making assumptions.
-
- Posts: 1
- Joined: Tue Aug 05, 2025 11:53 pm
- Contact:
Re: automatic module can read classpath?
An automatic module can read the classpath because the module system treats the entire classpath as a single unnamed module, which is implicitly readable by all named modules, including automatic ones. However, since the unnamed module doesn't export any packages, reflective access may still be limited unless explicitly opened.raphaelzintec wrote: ↑Sun Feb 09, 2025 9:14 ami don't remember which questions was it in your mock exam
but it said: automatic module can read classpath, Slope Game how is it possible if classpath exports nothing
-
- Site Admin
- Posts: 10403
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: automatic module can read classpath?
The unnamed module exports everything i.e. all packages. Automatic module can have reflective access to classes in the unnamed module.
Who is online
Users browsing this forum: No registered users and 7 guests