1. Basic JAVA Write once run any where 2. Basic Language Elements Identifiers, Keywords, Literals, White Spaces and Comments Identifiers A name in a program…