You are on page 1of 2

LAB PLAN Sub code:CS2309-JAVA LAB Branch: CSE Objective: Semester :V

LP-CS2309 Revision No: 00 Date:23-06-2010 Page 01 of 02

To learn the concepts of Object oriented programming and to write programs using JAVA. Session No 1 Exercise No 1 Exercises a) Design a simple student information system b) Design a banking system JavaDoc 2 2
Develop a Rational number class

Time Allocation 150m

150m

JavaDoc 3 3
Develop Date class in Java similar to the one available in java.util package

150m

Methods 4 4
Implement Lisp-like list in Java. Write basic operations such as 'car', 'cdr', and 'cons'. If L is a list [3, 0, 2, 5], L.car() returns 3, while L.cdr() returns [0,2,5]. Interface and Exception handling Design a Java interface for ADT Stack. Develop two different classes that implement this interface, one using array and the other using linked-list. Provide necessary exception handling in both the implementations. Polymorphism Design a Vehicle class hierarchy in Java. Write a test program to demonstrate polymorphism.

150m

150m

5,6

150m

Object serialization
Design classes for Currency, Rupee, and Dollar. Write a program that randomly generates Rupee and Dollar objects and write them into a file using object serialization. Write another program to read that file, convert to Rupee if it reads a Dollar, while leave the value as it is if it reads a Rupee.

150m

LAB PLAN Sub code: CS2309-JAVA LAB Branch: CSE Session No 9 Exercise No 8
Design a scientific programming paradigm

LP-CS2309 Revision No: 00 Date:23-06-2010

Semester :V Exercises

Page 02 of 02 Time Allocation 150m

Event-driven programming
calculator using event-driven

Multithreading
Write a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread that generates prime numbers below 100,000 and writes them into a pipe. Design another thread that generates fibonacci numbers and writes them to another pipe. The main thread should read both the pipes to identify numbers common to both.

150m

10,11

Event-driven and Concurrent Programming 12,13 10


Develop a simple OPAC system for library using evendriven and concurrent programming paradigms of Java. Use JDBC to connect to a back-end database. Develop multi-threaded echo server and a corresponding GUI client

150m

14

11

150m

Mini Project 12
Develop a programmer's editor in Java that supports syntaxhighlighting, compilation support, debugging support, etc.

150m

15

Model Examination

150m

Prepared by Signature Ms.S.Jayanthi, Senior Lecturer Ms. S.Shenbagavalli, Lecturer 23-06-2010

Approved by

Name Date

Dr. SUSAN ELIAS HOD-CSE 23-06-2010

You might also like