An Overview of Java:
Object-Oriented Programming, A First Simple Program, A Second Short Program, Two Control Statements, Using Blocks of Code, Lexical Issues, The Java Class Libraries, Data Types, Variables, and Arrays: Java Is a Strongly Typed Language, The Primitive Types, Integers, Floating-Point Types, Characters, Booleans, A Closer Look at Literals, Variables, Type Conversion and Casting, Automatic Type Promotion in Expressions, Arrays, A Few Words About StringsText book 1: Ch 2, Ch 3
Operators:
Arithmetic Operators, The Bitwise Operators, Relational Operators, Boolean Logical Operators, The Assignment Operator, The ? Operator, Operator Precedence, Using Parentheses, Control Statements: Java‟s Selection Statements, Iteration Statements, Jump Statements.
Text book 1: Ch 4, Ch 5
Introducing Classes:
Class Fundamentals, Declaring Objects, Assigning Object Reference Variables, Introducing Methods, Constructors, The this Keyword, Garbage Collection, The finalize( ) Method, A Stack Class, A Closer Look at Methods and Classes: Overloading Methods, Using Objects as Parameters, A Closer Look at Argument Passing, Returning Objects, Recursion, Introducing Access Control, Understanding static, Introducing final, Arrays Revisited
Text book 1: Ch 6, Ch 7 ( 7.1-7.9)
Inheritance:
Inheritance, Using super, Creating a Multilevel Hierarchy, When Constructors Are Called, Method Overriding, Dynamic Method Dispatch, Using Abstract Classes, Using final with Inheritance, The Object Class.
Text book 1: Ch 8
Packages and Interfaces:
Packages, Access Protection, Importing Packages, Interfaces, Exception Handling: Exception-Handling Fundamentals, Exception Types, Uncaught Exceptions, Using try and catch, Multiple catch Clauses, Nested try Statements, throw, throws, finally, Java‟s Built-in Exceptions, Creating Your Own Exception Subclasses, Chained Exceptions, Using Exceptions.
Text book 1: Ch 9, Ch 10
Course outcome (Course Skill Set)
At the end of the course the student will be able to:
CO1To explain the features and object oriented concepts in JAVA programming
CO2To analyse working of bitwise operators in JAVA
CO3To develop simple programs based on polymorphism and inheritance
CO4To describe the concepts of importing packages and exception handling mechanism
Programming Assignments
1.Write a JAVA program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a, b, c and use the quadratic formula.
2.Write a JAVAprogram for multiplication of two arrays.
3.Demonstrate the following operations and sign extension with Java programs (i)<< (ii) >> (iii) >>>
4.Write aJAVA program to sort list of elements in ascending and descending order
5.Create a JAVA class called Student with the following details as variableswithin it.
USN
NAME
BRANCH
PHONE
PERCENTAGE
Write a JAVA program to create n Student objects and print the USN, Name, Branch, Phone, and percentage of these objects with suitable headings.
6.Write a JAVA program demonstrating Method overloading and Constructor overloading.
7.Design a super class called Staff with details as StaffId, Name, Phone, Salary. Extend this class by writing three subclasses namely Teaching (domain, publications), Technical (skills), andContract (period). Write a JAVA program to read and display at least 3 staff objects of all three categories.
8.Demonstrate dynamic dispatch using abstract class in JAVA.
9.Create two packages P1 and P2. In package P1, create class A, class B inherited from A, class C . In package P2, create class D inherited from class A in package P1 and class E. Demonstrate working of access modifiers (private, public, protected, default) in all these classesusing JAVA.
10.Write a JAVA program to read two integers a and b. Compute a/b and print, when b is not zero. Raise an exception when b is equal to zero. Also demonstrate working of ArrayIndexOutOfBoundException.
Assessment Details (both CIE and SEE)
Continuous Internal Evaluation(CIE):
Two Unit Tests each of 20 Marks (duration 01 hour)
Two assignments each of 10 Marks
The teacher has to plan the assignments and get them completed by the students well before the closing of the term so that marks entry in the examination portal shall be done in time. Formative (Successive) Assessments include Assignments/Quizzes/Seminars/ Course projects/Field surveys/ Case studies/ Hands-on practice (experiments)/Group Discussions/ others. . The Teachers shall choose the types of assignments depending on the requirement of the course and plan to attain the Cos and POs. (to have a less stressed CIE, the portion ofthe syllabus should not be common /repeated for any of the methods of the CIE. Each method of CIE should have a different syllabus portion of the course). CIE methods /test question paper is designed to attain the different levels of Bloom’s taxonomy as per the outcome defined for the course.
The sum of two tests, two assignments, will be out of 60 marks and will be scaled down to 30 marks
CIE for the practical component of the Integrated Course
Semester End Examination(SEE):
Theory SEE will be conducted by University as per the scheduled timetable, with common question papers forthe subject (duration 03 hours)
The question paper will have 10 questions. Two questions per module. Each question is set for 20 marks. The students have to answer 5 full questions, selecting one full question from each module. The student has to answer for 100 marks and marks scored out of 100 shall be proportionally reduced to 30 marks.
There will be 2 questions from each module. Each of the two questions under a module (with a maximum of 3 sub-questions), should have a mix of topics under that module.
Lab SEE will be conducted based on the Lab assignments with both internal and external examiners as per prevailing practice. The exam will be conducted for 50 marks and minimum passing is 20 marks. The marks obtained will be proportionally reduced to 20 marks (max) and will be summed with theory SEE to get the total SEE marks.
Passing in the subject: The student will pass the subject only if he obtained minimum passing marks both in theory SEE and Lab SEE. If a student fails in either theory/lab he has to clear the corresponding component only. Grading will be assigned by combining the performance in Lab and theory.
Suggested Learning Resources:
Books (Title of the Book/Name of the author/Name of the publisher/Edition and Year)
1.Herbert Schildt, Java The Complete Reference, 7th Edition, Tata McGraw Hill, 2007.