R. C.
Patel Institute of Technology, Shirpur
An Autonomous Institute
S. Y. B. Tech
Academic Year – 2021-2022 Semester -III
[CMN201]: Problem solving through Programming in Java
Teaching Scheme: Credits: Examination Scheme:
TH : 03 Hours/Week TH: 03 Practical:
PR : 02 Hours/Week PR: 01 ISE: 40 Marks
ESE: 60 Marks
Total Marks: 100 Marks
Course Prerequisites:
Basic Object-Oriented Concepts
Course Objectives:
Learn the object-oriented programming concepts.
Study various java programming concept like multithreading, exception handling, packages
etc.
Apply algorithmic thinking to solve programming problems.
Implement syntax rules in Java programs.
Course Outcomes:
After successful completion of the course, students will able to-
CO1: Apply fundamental programming constructs.
CO2: Illustrate the concept of packages, classes and objects.
CO3: Elaborate the concept of strings, arrays and vectors.
CO4: Implement the concept of inheritance and interfaces.
CO5: Implement the notion of exception handling and multithreading.
Course Contents
UNIT-I Introduction, Variables, data types, and expressions 06 Hours
History of Java, Features of Java, How Java works?, Types of Java Program, Edit, compile, and run
Java applications. Identifier rules, Naming variables, constants (final) and references, Primitive data
types, Arithmetic Operators, Assignment Operators, Relational and Logical Operators.
UNIT-II Program control flow 06 Hours
Sequence structure, Selection structure, Repetition structure, Jump (Sequence) structure
UNIT-III Methods 06 Hours
Java API and Package/Library methods, User-defined methods, Scope and duration, Local and
Field variables, Pass-by-value, Pass-by-reference, Recursion, Overloading
UNIT-IV Arrays & Strings 06 Hours
Declaration and allocation, passing arrays to methods, Sorting, searching, Multiple-subscripted, Vector,
String.
UNIT-V Object-Based Programming 06 Hours
Classes and objects, instance variables, and instance methods, Member access modifiers: public,
private, protected, package, Creating packages, Constructors, overloaded constructors, Set (mutator),
Get (access), and predicate methods, Final instance variables, Composition, Finalizers, garbage
,collection, Static class members, this reference
UNIT-VI Object-Oriented Programming 06 Hours
Inheritance, Super class, subclass, Polymorphism, Dynamic method binding, Abstract class, Concrete
class, Inner class definition, Type-wrapper class for primitive data types, Interfaces
List of Laboratory Assignments
1. Program on various ways to accept data through keyboard.
2. Program on branching, looping, labelled break and labelled continue.
3. Program to create class with members and methods, accept and display details for single object.
4. Program on constructor and constructor overloading.
5. Program on method overloading.
6. Program on passing object as argument and returning object.
7. Program on creating user defined package.
8. Program on 1D array.
9. Program on 2D array.
10. Program on String.
11. Program on Vector.
12. Program on single and multilevel inheritance.
13. Program on abstract class.
14. Program on interface demonstrating concept of multiple inheritance.
15. Program to demonstrate try, catch, throw, throws and finally. Also, implement user defined
exception.
Textbooks:
1. Herbert Schildt, “JAVA: The Complete Reference”, Ninth Edition, Oracle Press.
2. Sachin Malhotra and Saurabh Chaudhary, “Programming in Java”, Oxford University Press,
2010
Reference Books:
1. Ivor Horton, “Beginning JAVA”, Wiley India.
2. Deitel and Deitel, “Java: How to Program”, 8/e,PHI
3. “JAVA Programming”, Black Book, Dreamtech Press.
4. “Learn to Master Java programming”, Staredusolutions.