6. Create a CourseException class that extends Exceptionand whose constructor receives a String that holds a collegecourse’s department (for example, CIS), a course number (forexample, 101), and a number of credits (for example, 3). Save thefile as CourseException.java. Create a Course class with the samefields and whose constructor requires values for each field. Uponconstruction, throw a CourseException if the department does notconsist of three letters, if the course number does not consist ofthree digits between 100 and 499 inclusive, or if the credits areless than 0.5 or more than 6. Save the class as Course.java. Writean application that establishes an
PayPal Gateway not configured
PayPal Gateway not configured