JVM System Threads

Java primitives Problem

Photo by Killian Cartignies on Unsplash

What are lambdas?

// Concatenating strings
(String s1, String s2) -> s1+s2;

Set<String> set = new HashSet<>();

Photo by Tomas Sobek on Unsplash

Photo by Ignacio Amenábar on Unsplash
new Thread( 
() -> System.out.println("hello world")
new Thread(new Runnable() {
public void run() {
System.out.println("hello world 2");

  • informing the passengers
  • booking hotels for night stay
  • scheduling another flight
  • issuing tokens for snacks

Classic programming models

Nuwan Zen

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store