New Syllabus
New Syllabus
Credit Units: 4
Course Objectives:
The objective of the course is to:
Give proficiency in developing applications and applets in Java.
Teach the basic concepts and techniques which form the object-oriented programming paradigm
Test, document and prepare a professional looking package for each business project using Javadoc.
Students will be able to learn database connectivity through java using JDBC.
Course Contents/Syllabus:
Weightage (%)
Module I: Introduction to JAVA Programming 15%
Introducing Classes, A Closer look at Methods and Classes, constructors, types of constructors, method overloading;
Inheritance, Single Inheritance, Multilevel hierarchy; Method overriding; Abstract classes; Interface; final; static; super; Garbage Collection;
Exception fundamentals, exception types, uncaught exceptions, throws, throw, try and catch, finally, built in exception, creating and using user defined
exception
Multithreading fundaments, thread creation, running a thread, thread priorities, synchronization suspending, resuming and stopping Threads
Applets Introduction, Life cycle of an applet, Applet Creation, Applet Execution, HTML basic tags; Graphics
introduction, use of Graphics classes to create UI in an applet
AWT- Introduction to AWT, Event handling Mechanism, Event Model, Event Classes, Sources of Events, Event Listener Interfaces,
Working with Windows, AWT Controls; Layout Manager; Introduction to swing classes and controls; Advantages of swings over AWT;
Basics, networking classes and interfaces, using java.net package, doing TCP/IP and Datagram Programming;
JDBC Architecture, Connection interface, Java database connectivity, introduction to package java.sql.*, working with SQL statements
List of Experiments:
1. WAP to determine the sum of the following harmonic series for a given value of n .
1 1 1
1+ + + …+
2 3 n
2. WAP to perform the following operations on strings through interactive input.
a) Sort given strings in alphabetical order.
b) Check whether one string is sub string of another string or not.
c) Convert the strings to uppercase.
3. WAP to simulate on-line shopping.
4. Create two threads such that one of the thread print even no‘s and another prints odd no‘s up to a given range.
5. Define an exception called ―Marks Out of Bound Exception, that is thrown if the entered marks are greater than 100.
6 Write a JAVA program to shuffle the list elements using all the possible permutations.
7 Create a package called ―Arithmetic that contains methods to deal with all arithmetic operations. Also, write a program to use the package.
8 Write an Applet program to design a simple calculator.
9 Write a program to read a text and count all the occurrences of a given word. Also, display their positions.
10. Write an applet illustrating sequence of events in an applet.
11. Illustrate the method overriding in JAVA.
12. Design a program to fill elements into a list. Also, copy them in reverse order into another list.
13. Write an interactive program to accept name of a person and validate it. If the name contains any numeric value throw an exception ―Invalid Name .
14. Write an applet program to insert the text at the specified position.
15. Prompt for the cost price and selling price of an article and display the profit (or) loss percentage.
75 25 100
Weightage (%) 10 10 25 5 50
Lab/ Practical/ Studio Assessment:
Text Books
References:
Core Java : Volume I – Fundamentals, Horstmann, C. S/ Cornell, G. 8th ed Pearson,2013
Core Java 2: Volume II – Advanced Features, Horstmann, C. S/ Cornell, G. 8th ed Pearson 2013
Java 2 Programming Bible Walsh, A/ Couch J/ Steinberg, D. IDG Books India Ltd, 1996
Java 2 Programming: Black Book, Holzner, Steven 5th ed Dreamtech, 2012 -2013
Web References
www.java.sun.com/docs/books/tutorial
http://www.tutorialspoint.com/jsp/
http://struts.apache.org