Java_Sound is a Java program that lets you use mouse or computer keyboard to play piano and record sounds with…