Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
16 views

java program

it contain java program
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

java program

it contain java program
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

(ECA-553) OBJECT ORIENTED SYSTEM MODELING

Lab Work:
1. Write a program in Java, to implements the Stack data Structure.
2. Write a program in Java to implement a simple Bank Account.
3. Write a program in Java showing the action from three threads using a suitable example
4. Write a program of threads in Java showing inter leaving of actions from two threads: t1 & t2
command line arguments the following inputs to the program:
Sleep interval for thread t1
Sleep interval for thread t2
Messages per cycle
Number of Cycles
5. Write a program in Java which converts a text file into all capital letters.6. Write a program to create a
sequential file that could store details about five products. Details include product code, cost, no. Of
items available and number of items available and are provided through keyboard.
7. Create a Person class with private instance variables for Person‟s name and birth date. Add
appropriate accessor methods to access the variables. Then create a subclass CollegeGraduate with
private instance variables for the student‟s GPA and year of graduation and appropriate accessors for
these variables. Don‟t forget to include appropriate constructors for your classes. Then create a class
with a main() method that manages your classes.
8. Develop an applet that receives three numeric values from the user and displays the largest of the
three on the screen. Write a HTML page that embeds this applet.
9. Write an applet which draws a human face with ovals and arcs.
10. Write servlets that accepts user preferences (color, hobby etc.) from user, saves it as cookie on user
machine and reads the cookie from the user machine.
11. Write an AWT application with checkbox such that all cable TV channels will be displayed from the
selected category.
12. Create a simple Swing based applet that displays two buttons. Each time a button is clicked, a
message is displayed that states which button was clicked.
13. Create JSP code that uses a persistant cookie (i.e. a cookie with an expiration date in the future) to
keep track of how many times the client computer has visited the page. Use setMaxAge method to
remain on the client‟s computer for one month. Display the number of page hits (i.e. cookie‟s value)
every time the page loads.
14. Write JSP program that asks user his favourite color as request parameter and sets it as the
background color of the page or sets the background color white if the parameter value is null.
15. Write a program in Java to show the mouse click event. The program should change the background
colour of window randomly at each mouse click.

You might also like