0% found this document useful (0 votes)
9 views3 pages

Sample Experiments 1

Uploaded by

kakakoka520181
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Sample Experiments 1

Uploaded by

kakakoka520181
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Sample Experiments:

1.a)Write a JAVA program to display default value of all primitive


data type of JAVA
1.b)Write a java program that display the roots of a quadratic
equation ax2+bx=0. Calculate the discriminate D and basing on
value of D, describe the nature of root.

2.a)Write a JAVA program to search for an element in a given list


of elements using binary search mechanism.
2.b)Write a JAVA program to sort for an element in a given list of
elements using bubble sort
2.c)Write a JAVA program using StringBuffer to delete, remove
character.

3.a)Write a JAVA program to implement class mechanism. Create


a class, methods and invoke them inside main method.
3.b)Write a JAVA program implement method overloading.
3.c)Write a JAVA program to implement constructor.
3.d)Write a JAVA program to implement constructor overloading.

4.a)Write a JAVA program to implement Single Inheritance


4.b)Write a JAVA program to implement multi level Inheritance
4.c)Write a JAVA program for abstract class to find areas of different
shapes

5.a)Write a JAVA program give example for “super” keyword.


5.b)Write a JAVA program to implement Interface. What kind of
Inheritance can be achieved?
5.c)Write a JAVA program that implements Runtime polymorphism

6.a)Write a JAVA program that describes exception handling


mechanism
6.b)Write a JAVA program Illustrating Multiple catch clauses
6.c)Write a JAVA program for creation of Java Built-in Exceptions
6.d)Write a JAVA program for creation of User Defined Exception

7.a)Write a JAVA program that creates threads by extending Thread


class.First thread display “Good
Morning “every 1 sec, the second thread displays “Hello “every 2
seconds and the third display
“Welcome” every 3 seconds,(Repeat the same by implementing
Runnable)
7.b)Write a program illustrating is Alive and join ()
7.c)Write a Program illustrating Daemon Threads.
7.d)Write a JAVA program Producer Consumer Problem

8.a)Write a JAVA program that import and use the user defined
packages
8.b)Without writing any code, build a GUI that display text in label
and image in an Image View (use
JavaFX)
8.c)Build a Tip Calculator app using several JavaFX components and
learn how to respond to user interactions with the GUI

9.a)Write a JAVA program for handling mouse events


9.b)Write a JAVA program for handling Keyboard events

10.a)Write a JAVA program that allows user to draw lines, rectangles


and ovals.
10.b)Write a Java Program that lets users create Pie charts. Design
your own user interface (with Swings & AWT).

You might also like