Read about REST here... In the example program REST is implemented using Jersey Framework. Download Jersey framework from here... I used Dynamic …