Question 5

Write a Java Program in which a class takes four integer arguments as input(a, b, c and d). Do addition of (a+b) on one thread, addition of (c+d) on another thread and multiplication of(a+b) * (c+d)) on main thread.

Like: Thread1 = (a+b)

Thread2 = (c+d)

Main Thread = (Thread1 * Thread2)

KodNest Training New Batch is starting on 15th July 2020Check Now

New Report

Close