1. WAP to demonstrate the use of Anonymous class. 2. WAP to demonstrate the inheritance of class-class, interface-interface and interface-class. 3. WAP to calculate the sum of all the elements on the major diagonal of a square matrix using the following method: public static int MajorDiagonal(int [][] arr) 4. WAP in which prompt the user to enter two numbers a and b. If a is divisible by b then throw NumberFormatException. Rethrow the exception from the catch block. And catch the re-thrown exception in a generalized catch block. 5. WAP to create a custom Exception class "TooLongException". Prompt the user to enter a String. If the length of String is greater than 10, then throw TooLongException. 6. WAP in which prompt the user to enter a number. If the number is less than 100 the throw an exception and display "Number is less than 10" and if it is greater than 20 then throw an exception and display "Number is greater than 20". Rethrow the exception in bot...