0% found this document useful (0 votes)
3 views

Object Oriented Programming with Java

The document outlines a course on Object Oriented Programming with Java, including its objectives, content, and outcomes. It covers key concepts such as control statements, classes, packages, multithreaded programming, and JDBC for database connectivity. The course includes practical experiments to reinforce learning and utilizes textbooks by Herbert Schildt and Joshua Bloch.

Uploaded by

yeyono5180
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Object Oriented Programming with Java

The document outlines a course on Object Oriented Programming with Java, including its objectives, content, and outcomes. It covers key concepts such as control statements, classes, packages, multithreaded programming, and JDBC for database connectivity. The course includes practical experiments to reinforce learning and utilizes textbooks by Herbert Schildt and Joshua Bloch.

Uploaded by

yeyono5180
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Course Name: Object Oriented Programming with Java

Course Code:
Course Credit: 3-0-4
Prerequisites: Computer Fundamentals, Programming Knowledge
Course Objectives:
● Define the key principles and concepts of object-oriented programming.

● Manipulate strings using string operations and methods.

● Utilize the collection framework and generics to work with data collections.

● Design user interfaces using Java's AWT and Swing components.

Course Content:
Theory
Module 1: 9 Hours
Introduction
History and Overview of Java, Object Oriented Programming, Control statements- if and for
loop. Using Blocks of codes, Lexical issues - White space, identifiers, Literals, comments,
separators, Java Key words, Data types - Integers, Floating point, characters, Boolean, A
closer look at Literals, Variables, Type conversion and casting. Automatic type promotion in
Expressions Arrays. Operators - Arithmetic operators, Bit wise operators, Relational
Operators, Boolean Logical operators, Assignment Operator, Operator Precedence. Control
Statements – Selection Statements - if, Switch, Iteration Statements - While, Do-while, for
Nested loops, Jump statements.

Module 2: 9 Hours
Classes
Class Fundamentals, Declaring objects, Assigning object reference variables. Methods -
constructors, “this” keyword, finalize() method A stack class, Over loading methods. Using
objects as parameters, Argument passing, Returning objects. Recursion, Access control,
Introducing final, understanding static. Introducing Nested and Inner classes. Using
command line arguments. Inheritance – Basics, Using super, method overriding, and
Dynamic method Dispatch, Using abstract classes and final with Inheritance.

Module 3: 9 Hours
Packages
Definition. Access protection importing packages. Interfaces: Definition and implementation.
Exception Handling – Fundamentals, types, Using try and catch and Multiple catch clauses,
Nested try Statements, throw, throws, finally. Java’s built-in exception, using Exceptions.

Module 4: 9 Hours
Multithreaded Programming:
Java thread model – main thread, creating single and multiple thread. Is alive() and join().
Thread – Priorities, Synchronization, Inter thread communication, suspending, resuming and
stopping threads, using multi-threading. I / O basics – Reading control input, writing control
output, Reading and Writing files. Applet Fundamentals – AWT package, AWT Event
handling concepts, the transient and volatile modifiers. Using instance of using assert.

Module 5: 9 Hours
JAVA Database Connectivity (JDBC)
Database connectivity – JDBC architecture and Drivers. JDBC API - loading a driver,
connecting to a database, creating and executing JDBC statements, handling SQL exceptions.
Accessing result sets: types and methods. An example - JDBC application to query a
database.

Course Outcomes:
After completing the course, the student will be able to
CO1: Develop the ability to write control statements for selection and iteration using if,
switch, while, do-while, and for loops.
CO2:Demonstrate proficiency in declaring and assigning object reference variables.
CO3:Identify Java's built-in exceptions and handle exceptions appropriately.
CO4:Describe the Java thread model and the concept of main thread.
CO5:Show the ability to access and query databases using JDBC API.

Text Books:
1. "Java: The Complete Reference" by Herbert Schildt, McGraw-Hill Education,
December 18, 2020.
2. "Effective Java" by Joshua Bloch,Addison-Wesley Professional,December 27, 2017.

Reference Books:
1. "Java How to Program" by Paul Deitel and Harvey Deitel,Pearson,April 16, 2021.
Practicals
List of Experiments:
1. Write a program to check whether two strings are equal or not.
2. Write a program to display reverse string.
3. Write a program to find the sum of digits of a given number.
4. Write a program to display a multiplication table.
5. Write a program to display all prime numbers between 1 to 1t000.
6. Write a program to insert element in existing array.
7. Write a program to sort existing array.
8. Write a program to create object for Tree Set and Stack and use all methods.
9. Write a program to check all math class functions.
10. Write a program to execute any Windows 95 application (Like notepad, calculator
etc)
11. Write a program to find out total memory, free memory and free memory after
executing garbage Collector (gc).
Part B
1. Write a program to copy a file to another file using Java to package classes. Get the
file names at run time and if the target file is existed then ask confirmation to
overwrite and take necessary actions.
2. Write a program to get file name at runtime and display number f lines and words in
that file.
3. Write a program to list files in the current working directory depending upon a given
pattern.
4. Create a text field that allows only numeric value and in specified length.
5. Create a Frame with 2 labels, at runtime display x and y command-ordinate of mouse
pointer in the labels.

You might also like