Resolving Checkmarx issues reportedSo, here we are using input variable String[] args without any validation…