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

Java Lab External

The document outlines a series of Java programming tasks divided into eight sets. Each set includes multiple programming challenges, such as creating classes, demonstrating various Java concepts like abstract classes, exceptions, and GUI components, as well as implementing algorithms for tasks like sorting and solving quadratic equations. The tasks cover a wide range of Java features, including object-oriented programming, multithreading, and event handling.

Uploaded by

Vamshi D
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Java Lab External

The document outlines a series of Java programming tasks divided into eight sets. Each set includes multiple programming challenges, such as creating classes, demonstrating various Java concepts like abstract classes, exceptions, and GUI components, as well as implementing algorithms for tasks like sorting and solving quadratic equations. The tasks cover a wide range of Java features, including object-oriented programming, multithreading, and event handling.

Uploaded by

Vamshi D
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SET-1

a) Write a Java program that prompts the user for an integer and then prints out all prime numbers up to
that integer.
b) Java program to demonstrate abstract usage.
c) Java program that simulates a traffic light.

SET-2
a) Write a Java program to create a Student class with following fields
i. Hall ticket number ii. Student Name iii. Department
Create ‘n’ number of Student objects where ‘n’ value is passed as input toconstructor.
b) Write a java program to crate user defined exception class and test this class.
c) Applet to compute factorial value.

SET-3
a) Write a program to demonstrate packages.
b) Write a java program to demonstrate synchronized keyword.
c) Java program to demonstrate MouseListener, MouseMotionListener.

SET-4
a) Write a Java program for sorting list of names. Read input from command line.
b) Write a java program to implement multiple inheritance.
c) Java program to demonstrate KeyListener.

SET-5
a) Write a java program to demonstrate method overloading and method overriding.
b) Java program to display the table using Labels in Grid Layout.
c) Develop Swing application which uses JTable, JTabbedPane,

SET-6
a) Write a Java program to make frequency count of words in a given text.
b) Write a java program to demonstrate finals, blank finals, final methods, and final classes.
c) Java program that works as a simple calculator.

SET-7
a) Write a Java program that prints all real solutions to the quadratic equation ax2 +bx +c = 0. Read in a, b, c
and use the quadratic formula. If the discriminate b2-4ac is negative, display a message stating that there are
no real solutions.
b) Java program that implements a multi-thread application.
c) Develop Swing application which uses JList, JTree,

SET-8
a) Java program to demonstrate Hashtable usage.
b) Write a java program to demonstrate static member, static method and static block.
c) Write a Java program that creates a user interface to perform integer divisions.

You might also like