Oopt Java Syllabus
Oopt Java Syllabus
II year I Semester
L T P/D C
2 1 0 3
Code: 8EC02
Course Objective:
Understand the concepts of Object oriented programming principles of Java. Write the
programs and execute using OOP Principles such as garbage collection, overloading
methods, constructors, recursion, string handling, StringTokenizer, inheritance and its
types, packages, multithreading and threads.
Course Outcomes: After completion of the course, the student will be able to:
1 Understand and comprehend the fundamentals of JAVA, its Classes, and Objects and
write simple programs using constructors.
2 Write programs using inheritance, interface and packages.
3 Implement programs using Packages, I/O Stream and collections.
4 Implement Exception handling and Multithreading.
5 Design programs using AWT, Swings and develop applications using event handling.
6 Develop applications using Applets and develop client server programs using
networking concepts.
UNIT I
History of Java, Java buzzwords, datatypes, variables, simple java program, scope and
life time of variables, operators, expressions, control statements, type conversion and
costing, arrays,, classes and objects – concepts of classes, objects, constructors, meth-
ods, access control, this keyword, garbage collection, overloading methods and con-
structors, recursion, string handling,StringTokenizer.
Applications: Basic operations on the bank account of a customer.
UNIT II
Inheritance –Definition, single inheritance, benefits of inheritance, Member access rules,
super class, polymorphism- method overriding, Dynamic method dispatch, using final
with inheritance, abstract classes, Base classobject.
Interfaces: definition, variables and methods in interfaces, differences between classes and
interfaces, usage of implements and extends keyword, interfaces, uses of interfaces, pack-
ages Applications: Extending the banking operations to the loan applicants.
UNIT III
Packages: Definition, types of packages, Creating and importing a user defined package.
Introduction to I/O programming: DataInputStream, DataOutputStream, FileInput-
Stream,FileOutputStream, BufferedReader.
Collections: interfaces, Implementation classes, and Algorithms (such as sorting
and searching).
Applications: Searching for a string in the text. PNR status check, students’ result sorting.
UNIT IV
Exception handling -exception definition, benefits of exception handling, exception
hierarchy, usage of try, catch, throw, throws and finally, built in exceptions, creating
own exception sub classes.
Multi-Threading: Thread definition, types of multitasking, uses of multitasking, thread
life cycle, creating threads using Thread class and Runnable interface, synchronizing
threads, daemon thread.
Applications: Illegal entry handling in the registration form. (Example: entering incor-
rect intermediate hall-ticket number in EAMCET Registration form)
UNIT V
Advantages of GUI over CUI ,The AWT class hierarchy, Introduction to Swings,
Swings Elements:- JComponent, JFrame, user interface components- JLabels, JButton,
JScrollbars, text components, check box, check box groups, choices, lists panels –
scrollpane, menubar, graphics, layout, managers –boarder, grid, flow, card and grid bag.
Event handling: Delegation event model, closing a Frame, mouse and keyboard events,
Adapter classes.
Applications: developing calculator, developing feedback form, developing bio data.
UNIT VI
Applets – Concepts of Applets, differences between applets and applications, life cycle of
an applet, types of applets, creating applets, passing parameters to applets.
Applications: Developing of simple advertisements.
Networking – Basics of network programming, addresses, ports, sockets, simple client
server program, multiple clients, sending file from server to client.
Applications: One to one Chat application
TEXT BOOKS:
1. Java; the complete reference, 6th edition, Herbert Schildt,TMH.
2. Introduction to Java programming 6th edition, Y. Daniel Liang, Pearsoneducation.
REFERENCES:
1. Core Java 2, Vol 1, Fundamentals, Cay. S. Horstmann and Gary Cornell, seventh
Edition, PearsonEducation.
2. Core Java 2, Vol 2, Advanced Features, Cay. S. Horstmann and Gary Cornell,
Seventh Edition, PearsonEducation