5 ms·
This is basically what java modules do, right? From java 9 and onwards. You have public stuff within your module, that other packages in the module can use. Bu
by matsemann 2y ago
This is basically what java modules do, right? From java 9 and onwards.
You have public stuff within your module, that other packages in the module can use. But another module cannot use it without you declaring it as part of your actual public facing API. I don't see people use it much in application code, though. Often just a single module where people can call everything.
- yas_hmaheshwari 2y agoYup, same experience here. Java modules took a long time to land, but now, it looks like the whole exercise for making the JDK more modular. Haven't seen any use in the application code Even things like Spring Modulith don't use Java modules