0% found this document useful (0 votes)
123 views

Java Programming Lab

This document provides a list of 12 experiments for a Java programming lab, including developing classes for stacks, queues, complex numbers, dates, shapes, and threads. Some key experiments are: 1. Develop classes for stacks and queues with documentation. 2. Design classes for complex numbers and shapes with polymorphism. 3. Write a program to sort DNA sequences by the number of "TATA" subsequences and output the results. 4. Create a simple paint program with graphics, menus, and buttons. The experiments cover object-oriented concepts, exceptions, files, threads, GUIs, and data structures.

Uploaded by

Karthik Moorthi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views

Java Programming Lab

This document provides a list of 12 experiments for a Java programming lab, including developing classes for stacks, queues, complex numbers, dates, shapes, and threads. Some key experiments are: 1. Develop classes for stacks and queues with documentation. 2. Design classes for complex numbers and shapes with polymorphism. 3. Write a program to sort DNA sequences by the number of "TATA" subsequences and output the results. 4. Create a simple paint program with graphics, menus, and buttons. The experiments cover object-oriented concepts, exceptions, files, threads, GUIs, and data structures.

Uploaded by

Karthik Moorthi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

JAVA PROGRAMMING LAB

LIST OF EXPERIMENT

Sl.No
1.

NAME OF THE EXPERIMENT


Develop a Java package with simple Stack and Queue classes. Use Java Doc comments for documentation Design a class for Complex numbers in Java. In addition to methods for basic operations on complex numbers, provide a method to return the number ofActive objects created. Design a Date class similar to the one provided in the java.util package Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism 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 Write a Java program to read a file that contains DNA sequences of arbitrary length one per line (note that each DNA sequence is just a String). Your program should sort the sequences in descending order with respect to the number of 'TATA' Subsequences present. Finally write the sequences in sorted order into another file. Develop a simple paint-like program that can draw basic graphical primitives in different dimensions and colors. Use appropriate menu and buttons. Develop a scientific calculator using even-driven programming paradigm of Java. Develop a template for linked-list class along with its methods in Java. Design a thread-safe implementation of Queue class. Write a multi-threaded Producer-consumer application that uses this Queue class. 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. Develop a multi-threaded GUI application of your choice

2.

3. 4.

5.

6.

7.

8. 9. 10.

11.

12.

You might also like