0% found this document useful (0 votes)
3 views1 page

Java Lab Program

The document outlines a Java lab program with four tasks. These tasks include designing a login page with servlets for user validation, creating a program to handle number range exceptions, utilizing the StringBuffer class, and executing two threads with specific display intervals. Each task focuses on different aspects of Java programming and threading concepts.

Uploaded by

Naved Baliyan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Java Lab Program

The document outlines a Java lab program with four tasks. These tasks include designing a login page with servlets for user validation, creating a program to handle number range exceptions, utilizing the StringBuffer class, and executing two threads with specific display intervals. Each task focuses on different aspects of Java programming and threading concepts.

Uploaded by

Naved Baliyan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like