Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Runnable vs Callable in Java 🔥 | Future, execute() & submit() | Interview Questions

Video information, playback and saved actions.

Runnable vs Callable in Java 🔥 | Future, execute() & submit() | Interview Questions

Description: In this video, we cover some of the most commonly asked Java Concurrency interview questions around Runnable, Callable, ExecutorService and Future.

We’ll understand:

* What is Runnable?
* What is Callable?
* Runnable vs Callable
* execute() vs submit()
* Can submit() accept both Runnable and Callable?
* Why does submit() return a Future?
* What is Future?
* How does Future.get() work?
* Why is Future.get() blocking?
* Why was CompletableFuture introduced?
* Future vs CompletableFuture

I’ve explained these concepts from an interview perspective, so you can understand the concept and also frame your answer when asked in a Java backend interview.

This video is a continuation of Java Concurrency concepts including ExecutorService and CompletableFuture.

If you're preparing for Java / Spring Boot backend interviews, this is an important set of concepts to know.

Subscribe for more Java, Spring Boot, Backend Development and Interview Preparation videos.

#Java #JavaInterview #JavaConcurrency #ExecutorService #Callable #Runnable #Future #CompletableFuture #BackendDevelopment


java
java interview questions
java interview
java concurrency
java concurrency interview questions
runnable vs callable
runnable vs callable java
callable vs runnable
runnable java
callable java
executorservice
executorservice java
execute vs submit
execute vs submit java
submit method java
execute method java
future in java
future java
java future
completablefuture
completablefuture java
future vs completablefuture
java multithreading
java multithreading interview questions
java backend interview questions
java developer interview
backend developer interview
java interview preparation
spring boot interview
java 8 interview questions Close description
      
Videos related to "Runnable vs Callable in Java 🔥 | Future, execute() & submit() | Interview Questions"