OOPS(20CS57) LAB EXTERNAL (2022-23)

SET-1

1. Develop a java program to implement mouse events like mouse pressed, mouse released, and mouse moved by means of adapter classes.

2. Develop a java program to print the collection data by using the following ways i) for loop ii) for-each loop iii) Iterator iv) ListIterator

SET-2

1. Five bikers compete in a race such that they drive at a constant speed, which may or may not be the same as the other. To qualify for the race, the speed of a racer must be more than the average speed of all five racers. Take as input the speed of each racer and print back the speed of qualifying racers.

2. Develop a java program to illustrate the concept of inter-thread communication.

SET-3

1. Write a JAVA program to implement the Rhombus pattern reading the limit from the user.

2. Develop a java program to create an interface named Vehicle which contains two abstract methods (Specifications (), Display ()). Provide two classes named Two-wheeler, Four-wheelers that is implemented by that interface.

SET-4

1. Develop a java program to simulate a traffic light, user can select any one of the three buttons with: red, yellow, and green color. On selecting a button, an appropriate message with “Stop” or “Ready” or “Go” should appear with the selected button color.

2. Develop a java program to achieve multiple inheritances using interfaces.

SET-5

1. Develop a java program to identify the use of synchronized blocks, synchronized methods and static synchronized methods in threads concept.

2. Develop a java program to create and access user-defined packages.

SET-6

1. Develop a java program to calculate the sum of diagonal elements of given n x n matrix

2. Develop a java program that reads a line of integers separated by commas and then displays each integer, find the sum of the integers (using StringTokenizer).

SET-7

1. Develop a java program, which implements constructor overloading by passing different number of parameters of different types

2. Develop a java program for sorting a given list of names in ascending order.

SET-8

1. Develop a java program that works as a simple calculator. Use a Grid Layout to arrange Buttons for digits and for the + - * % operations. Add a text field to display the result. Handle any possible exceptions like divide by zero

2. Develop a java program to perform all the operations in the Collection interface.

SET-9

1. Develop a java program that implements a multi-threaded program, which has three threads. First thread generates a random integer for every 1 second, if the generated integer is even the second thread computes the square of the number and print it. If the generated integer is odd the third thread will print the value of cube of the number

2. Develop a java program to implement and perform all the operations in List, Set Interface.

SET-10

1. Develop a java program to implement Method Overloading and Method Overriding.

2. Develop a java program to implement and perform all the operations in the Map interface



Internal Examiner :

Name           : S.Srinivasa Reddy

Designation : Sr. Assistant Professor

Address        : LBRCE, Mylavaram.

External Examiner :

Name           : M. Naveen

Designation : Assistant Professor

Address        : RVR & JC, Guntur

Comments

Popular posts from this blog

MapReduce Matrix Multiplication Code

Word Count MapReduce Code

Step by step procedure for HADOOP installation on UBUNTU