JAVA LAB PROGRAM
9. Design a login page using servlets and validate the username and password
by comparing the details stored in the database.
10. Write a program in java if number is less than 10 and greater than 50 it
generates the exception out of range. Else it displays the square of number.
[Link] a program in java that uses StringBuffer class and at least three of its
member functions.
[Link] an application that executes two threads. One thread
displays ―”An” every 1000 milliseconds and other
displays ―”B” every 3000 milliseconds. Create the threads
by extending the Thread class.