All Posts About Java


Ping Pong using Threads in Java

Ping Pong using Threads in Java

Ashish Lahoti

This problem is frequently asked in the interview to check your understanding on threads and your programming skills. Problem statement might change for e.g.

  • Print ping pong using two threads.
  • Print alternate number using two threads.
  • Print even numbers by one thread and odd numbers by another thread.
Transform JSON-LD in Java

Transform JSON-LD in Java

Ashish Lahoti

In this tutorial, we’ll learn how to transform a Java Object to JSON-LD and vice versa. Also learn how to verify the schema of JSON-LD.