SESSION PLANNER
Subject: JAVA PROGRAMMING
Branch: II CSE-D
Academic Year: 2014-2015
Faculty: Sheikh Gouse
Batch I
Exp.
No
PROGRAM
S/W
Used
NetBean
s IDE /
Eclipse
WEEK1
Develop an applet that displays a simple message.
WEEK2
Develop an applet that receives an integer in one text field, NetBean
and computes its factorial Value and returns it in another text s IDE /
Eclipse
field, when the button named Compute is clicked.
WEEK3
Write a program that creates a user interface to perform NetBean
integer divisions. The user enters two numbers in the s IDE /
textfields, Num1 and Num2. The division of Num1 and Eclipse
Num2 is displayed in the Result field when the Divide button
is clicked. If Num1 or Num2 were not an integer, the program
would throw a NumberFormatException. If Num2 were Zero,
the program would throw an ArithmeticException. Display
the exception in a message dialog box.
Write a Java program that simulates a traffic light. The NetBean
program lets the user select one of three lights: red, yellow, or s IDE /
green with radio buttons. On selecting a button, an Eclipse
appropriate message with Stop or Ready or Go should
appear above the buttons in selected color. Initially there is no
message shown.
WEEK4
WEEK5
Write a java program to create an abstract class named Shape NetBean
that contains two integers and an empty method named s IDE /
printArea(). Provide three classes named Rectangle, Triangle Eclipse
and Circle such that each one of the classes extends the class
Shape. Each one of the classes contains only the method
printArea() that prints the area of the given shape.
Date
Date
Planne Condu
d
cted
WEEK6
Write a Java program that implements a multi-thread NetBean
application that has three threads. First thread generates s IDE /
random integer every 1 second and if the value is even, Eclipse
second thread computes the square of the number and prints.
If the value is odd, the third thread will print the value of
cube of the number.
WEEK7
Write a Java program that implements a multi-thread NetBean
application that has three threads. First thread generates s IDE /
random integer every 1 second and if the value is even, Eclipse
second thread computes the square of the number and prints.
If the value is odd, the third thread will print the value of
cube of the number.
Write a Java program that connects to a database using JDBC NetBean
s IDE /
and does add, delete, modify and retrieve operations.
WEEK8
Eclipse
WEEK9
Suppose that a table named [Link] is stored in a text file. NetBean
The first line in the file is the header, and the remaining lines s IDE /
correspond to rows in the table. The elements are separated Eclipse
by commas. Write a java program to display the table using
Labels in Grid Layout.
WEEK10
Write a Java program that handles all mouse events and NetBean
shows the event name at the center of the window when a s IDE /
Eclipse
mouse event is fired (Use Adapter classes).
Write a Java program that loads names and phone numbers NetBean
from a text file where the data is organized as one line per s IDE /
record and each field in a record are separated by a tab (\t). It Eclipse
takes a name or phone number as input and prints the
corresponding other value from the hash table (hint: use hash
tables).
WEEK11
WEEK12
Implement the above program with database instead of a text NetBean
s IDE /
file.
WEEK13
Write a Java program that takes tab separated data (one NetBean
record per line) from a text file and inserts them into a s IDE /
Eclipse
database.
WEEK14
Write a Java program that prints the meta-data of a given NetBean
s IDE /
table.
Eclipse
Eclipse