How to create Modules in Java 9 - Tutorial

preview_player
Показать описание
Learn about how Java 9 enables strong encapsulation with modularity.
Modules add a further layer of encapsulation to our packages as we are able to specify which packages can be used by other modules, and which modules can have access to them.
This video will transform a multi-layered application to use modularity with Java 9 to demonstrate the benefits that can be realised.

🕒 Timestamps 🕒

00:00 - Introduction
00:27 - Application packages
01:52 - Visualising modules
04:48 - Created Java 9 Modules
Please like, subscribe and leave a comment to let me know what you think!

Рекомендации по теме
Комментарии
Автор

one of the easiest and great tutorials.

TheGhanashyam
Автор

Very helpful. I am a Java developer that need a lot more of your Java 8, 9 and so on. Please keep up the great work.

TrioTunes
Автор

:D Thanks! I was reading a book but your explanation is much better

vermalreik
Автор

great....i understand better after watching your video....please continue

jahadulrakib
Автор

Thanks, looking forward to trying out creating modules!

Batmundd
Автор

They way you explain makes it look interesting and easy. Please do some videos on ML with Java. There are so many on Python and so few in Java on this most important subject !

Terracotta-warriors_Sea
Автор

This was the best tutorial i found so far for migration from the non-modular to modular system.
But I have a problem in my case, i have external resources such as png files in a resources folder, but the problem is my worse directory structure, i have src/some.class src/program/someother.class and src/program/resources. I'm confused on what to do, can I just include that resources as a module, or something else is there in place for resources

Maharishi.
Автор

Thank for such an informative tutorial. What do you think of Java sealed classes vs Java modules ? I think they do relate just like XML configuration vs Annotations. Thank you.

francksgenlecroyant
Автор

Hi Annesh, can i ask you for a big favor? If it is okay I would love to see a video from you explaining how to create a simple java module Hello World using Log4j to print the "Hello World", then creating the JAR file, then using JLINK to create a small version of the JDK using only what this simple program requires by using JDEPS to figure it out and then finally using JPACKAGE to create an installation of this simple program. Everything is very simple but the key in this example is using Log4j, a third-party jar. Do you think you can do it? It would be very much appreciated. Thank you. Renato.

rctereza