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

OOP with UML

Uploaded by

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

OOP with UML

Uploaded by

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

SILVER OAK UNIVERSITY

College of Technology
Bachelor of Technology
Information Technology
Course Name: Oriented Programming with UML
Course Code:1010043231
Semester: 4th

Prerequisite:
1 . Basics of Programming Language

Course Objectives:
1. Main objective is to teach the basic concepts and techniques which form the object oriented
programming paradigm

2. To understand fundamental features of an object oriented programming language in Java which


includes object & classes, interfaces, encapsulation, inheritance, polymorphism and error exception
handling

3. To Prepare UML diagrams for software system.

Teaching Scheme:

Teaching Scheme
L T P Contact Hours Credit
3 0 4 7 5

Contents:

Unit Topics Teaching % Weightage


Hours
1 Introduction to java and Basic programming: 4 10%
Features of Java, Byte Code and Java Virtual Machine, JDK and
IDE, Creating, compiling and Executing a simple java program,
Programming style, documentation and errors, Reading input
from console, identifers and variables, Assignment statements,
Named constants and naming conventions, Data Types
(Numeric, Boolean, Character, String) its Operations and
Literals, Evaluating Expressions and operator Precedence,
Types of Operators (Augmented assignment, Increment and
Decrement, Logical), operator precedence and associativity,
numeric type conversions.
2 Control Structure: If , else, nested if, if-else ladders, Switch, 2 4%
while, do-while, for, for-each, break, continue
3 Array and String: Single and Multidimensional Array, String 4 8%
class, String Bufer class, Operations on string, Command line
argument, Use of Wrapper Class.
4 Classes, Objects and Methods: Class, Object, Object reference, 4 15%
Constructor, Constructor Overloading, Method Overloading,
Recursion, Passing and Returning object form Method, new operator,
this and static keyword, fnalize() method, Access control, modifers,
Nested class, Inner class, Anonymous inner class
5 Object oriented thinking: Use of Inheritance, types of 7 15%
inheritance, Inheriting Data members and Methods, constructor
in inheritance, super class and subclass, using super keyword,
Final keywords, overriding and overloading methods,
polymorphism, Dynamic method dispatch, Abstract class,
Creation and Implementation of an interface, Interface reference,
instanceof operator, Interface inheritance, Comparison between
Abstract Class and interface ,Package: Organizing Classes and
Interfaces in Packages, Use of Package, CLASSPATH.
6 Exception Handling: Exception and Error, Use of try, catch, 4 8%
throw, throws and fnally, Built in Exception, Custom exception,
Throwable Class.
7 IO Programming: Introduction to Stream, Stream classes, class 4 10%
hierarchy, useful I/O classes, creation of text fle, reading and
writing text fles.
8 Multithreaded programming: Thread class and Runnable interface , 4 10%
Thread priority, Thread synchronization, Thread communication,
Deadlock
9 Collections: List, AbstractList, ArrayList, LinkedList,Vector, 3 5%
HashSet,HashMap
10 UML : Introduction to Object orientation, Modeling as a Design 6 15%
Technique Modeling Concepts, abstraction, The three models, Class
Model, State model and Interaction model Class Modeling: Object
and class concepts, link and association, Generalization and
Inheritance State modeling: Events, states, Transition and conditions,
state diagram, state diagram behavior Interaction Modeling: Use case
Models, sequence models, activity models

Teaching & Learning Methodology: -

The various methods or tools follows by the faculties to teach the above subject are:
1. The course includes a laboratory, where students have an opportunity to build an appreciation for
the concepts being taught in lectures.
2. Lectures with live practical example using Projector and Computer.
3. Experiments shall be performed in the laboratory related to course contents.
Course Outcomes:

Sr. No. CO Statement Unit


Implement various Java constructs, features and libraries for simple
CO-1 1,2,3
problems.
Demonstrate how to defne and use classes, interfaces, create objects and
CO-2 methods, how to override and overload methods, compile and execute 4,5
programs.
Formulate the program using exception handling, multithreading with
CO-3 6,8
synchronization.
CO-4 Formulate a program using Files, I/O and collection for a given problem. 7,9
CO-5 Develop object oriented models using UML appropriate notations. 10
List of Experiments: Total Hours: 56

Sr. No. Practical Name


1 Write a Program that displays Welcome to Java, This is my frst JAVA program.
2 Write a program to convert rupees to dollar. 70 rupees=1 dollar.
3 Write a program that calculates percentage marks of the student if marks of 6 subjects are given.
4 Write a program that solves the following equation and displays the value x and y: 1)
3.4x+50.2y=44.5 2) 2.1x+.55y=5.9
(Assume Cramer’s rule to solve equation ax+by=e, cx+dy=f, x=ed-bf/ad-bc, y=af-ec/ad-bc )
5 Write a program that reads a number in meters, converts it to feet, and displays the result.
6 Write a program to count the number of words that start with capital letters.
7 Write a program to count the number of words that start with capital letters.
8 Write a program that prompts the user to enter a letter and check whether a letter is a vowel
or constant.
9 Write an interactive program to print a string entered in a pyramid form. For instance, the
string “stream” has to be displayed as follows:
S
St
Str
Stre
Strea
Stream
10 Write a program to fnd the length of the string and print the second half of the string.
11 Write a program to fnd that given number or string is palindrome or not.
12 Assume a vehicle plate number consists of three uppercase letters followed by four
digits.Write a program to generate a plate number.
13 Write a java program to demonstrate multilevel inheritance
14 Write a java program to fnd out the area of circle and area of rectangle using the concept of
method overloading.
15 Write a java program to fnd out the volume of rectangular box and volume of cube using
the concept of constructor overloading.
16 Design a class which fnds out the factorial of a given number using recursion.
17 Write a java program to demonstrate the use of dynamic method dispatch.
18 Write a java program to demonstrate the concept of interface.
19 Write a java program to create a user defned package.
20 Write a program to show divide by zero error through exception, and also try to catch the
exception.
21 Write a program to create two threads, one thread will print odd numbers and second thread
will print even numbers between 1 to 20 numbers.
22 Create a class called Student. Write a student manager program to manipulate the student
information from fles by using FileInputStream and FileOutputStream
23 Refne the student manager program to manipulate the student information from fles by
using the BuferedReader and BuferedWriter
24 Write a java program to represent the collection concept.
25 Draw use case diagram for hotel management system.
26 Draw a class diagram of a bank management system.
27 Prepare a sequence diagram for issuing a book in the library management system.
Books Recommended:
1. The Complete Reference JAVA by Herbert Schildt, 7th edition, McGraw Hill Education
th
2. Intro to Java Programming, 10 edition, Y.Daniel Liang, Pearson

3. Java Fundamentals A comprehensive introduction By Herbert Schildt, Dale Skrien, McGraw Hill
Education.
4. Object oriented programming with Java , Rajkumar Buyya,S Thamarai Selvi,Xingchen Chu,
McGrawHill
5. Programming in Java, Sachin Malhotra, Saurabh Choudhary, Oxford 5. Programming with JAVA , E
Balagurusamy, McGrawHill
6. Object Oriented Modeling and Design with UML, Michael Blaha and James Rambaugh –PEARSON
second edition

List of Open-Source Software/learning website:


1. https://nptel.ac.in/

You might also like