Java Two Marks – Click Here to download the pdf file…