FrequentProblems that occur in java code