Java Progamming Syllabus R13 JNTUH
Java Progamming Syllabus R13 JNTUH
T/P/D
4
-/-/-
C
4
UNIT IV :
Collection Framework In Java- Introduction to Java Collections, Overview of Java Collection
frame work, Generics, Commonly used Collection classes- Array List, Vector, Hash table, Stack,
Enumeration, Iterator, String Tokenizer, Random, Scanner, calendar and Properties.
Files- Streams-byte streams, character streams, text input/output, binary input/output, random
access file operations, File management using File class.
Connecting to Database- JDBC Type 1 to 4 drivers, connecting to a database, querying a
database and processing the results, updating data with JDBC.
UNIT V
GUI Programming with Java - The AWT class hierarchy, Introduction to Swing, Swing vs
AWT, Hierarchy for Swing components, Containers Jframe, JApplet, JDialog, JPanel.
Overview of some Swing components Jbutton, JLabel, JTexField, JTextArea, simple swing
applications, Layout management - Layout manager types border, grid and flow.
Event Handling : Events, Event sources, Event classes, Event Listeners, relationship between
Event sources and Listeners, Delegation event model, Example: handling a button click,
handling mouse events, Adapter classes.
Applets Inheritance hierarchy for applets, differences between applets and applications, life
cycle of an applet, passing parameters to applets, applet security issues.
TEXT BOOK
1. Java Fundamentals A comprehensive Introduction, Herbert Schildt and Dale Skrien,
TMH.
REFERENCE BOOKS
1. Java for Programmers, P.J. Deitel and H.M. Deitel, Pearson education (OR) Java: How to
Program P.J.Deitel and H.M. Deitel, PHI.
2. Object Oriented Programming through Java, P. Radha Krishna, Universities Press.
3. Thinking in Java, Bruce Eckel, Peason Education
4. Programming in Java, S. Malhotra and S. Choudary, Oxford Univ. Press.
T/P/D
-/3/-
C
2
appropriate message with Stop or Ready or Go should appear above the buttons in
selected color. Initially there is no message shown.
8. Write a java program to create an abstract class named Shape that contains two integers
and an empty method named printArea(). Provide three classes named Rectangle,
Triangle 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.
9. Suppose that a table named Table.txt is stored in a text file. The first line in the file is the
header, and the remaining lines correspond to rows in the table. The elements are
separated by commas. Write a java program to display the table using Labels in Grid
Layout.
10. Write a Java program that handles all mouse events and shows the event name at the
center of the window when a mouse event is fired (Use Adapter classes).
11. Write a Java program that loads names and phone numbers from a text file where the data
is organized as one line per record and each field in a record are separated by a tab (\t). It
takes a name or phone number as input and prints the corresponding other value from the
hash table (hint: use hash tables).
12. Implement the above program with database instead of a text file.
13. Write a Java program that takes tab separated data (one record per line) from a text file
and inserts them into a database.
14. Write a Java program that prints the meta-data of a given table.
TEXT BOOK:
1. Java Fundamentals A comprehensive Introduction, Herbert Schildt and Dale Skrien,
TMH.
REFERENCE BOOKS:
1. Java for Programmers, P.J. Deitel and H.M. Deitel, Pearson education (OR) Java: How to
Program P.J. Deitel and H.M. Deitel, PHI.
2. Object Oriented Programming through Java, P. Radha Krishna, Universities Press.
3. Thinking in Java, Bruce Eckel, Pearson Education.