problem1. describe what is meant by a ‘constructor’ in Java. Use an easy case in point to illustrate your answer.
problem2. Make a distinction between a class method and an instance method. Demonstrate with an ex.
problem3. Illustrate the different ways you can call a method in Java with proper exs.
problem4. prepare a program which will print the square of numbers from 1 to 10 on a message dialog. Here you must have a technique called square in your program.
problem5. prepare a program which will test whether the number entered by a user is either even or odd. You may use an input dialog from JOptionPane to prompt the user to enter the number.