Java Fundamentals - Lesson 52 - Different implementations of Executors

preview_player
Показать описание
Are you new to Java development? Do you want to know what to start with? This is a complete stream dedicated to you - the junior developer or future developer.

- Java OCP 11 certification
- Learn Java basics
- Find a junior java developer role

If your target is at least one of the above, then this lesson streaming is for you. Join!

Don't forget to follow me on Twitter @laurspilca or LinkedIn for more posts and discussions.

Комментарии
Автор

Laurentiu the last 2 videos 51 and 52 audio has been low... Can you fix that in future videos before all have been good.

peterfraga
Автор

Hello Laurentiu,
Thank you for this tutorial and all other tutorials about java 11

My question is : Why you have to add Thread.sleep(6000) ?

I have these lines of codes and it work perfectly (the hello word is printed after 5 sec and the app exits successfully) :

ScheduledExecutorService service =

Runnable r = () -> System.out.println("hello");

service.schedule(r, 5, TimeUnit.SECONDS);

service.shutdown();

//Thank you for your help

chahinehajji