UNIT 1: Java Platform & Basic Syntax (15 Hrs)
- The Java Platform
- Basic Java Syntax
UNIT 2: Classes and Objects (15 Hrs)
UNIT 3: Inheritance and Polymorphism (15 Hrs)
- Classes, Superclasses and Subclasses
- The Object Superclass
- Generic Array Lists
- Object Wrappers and Autoboxing
- Methods with Variable Number of Parameters
UNIT 4: Interfaces, Lambda Expressions & Exception Handling (15 Hrs)
- Interfaces
- The Comparator Interface
- Object Cloning
- Lambda Expressions
- Exception Handling
- Introduction to Multithreading
- File IO Basics
- Reading and Writing to Files
Practical/Lab Course (2 Credits, 60 Hours)
- Install and configure a Java IDE (e.g., Eclipse, IntelliJ IDEA)
- Write a simple Java program to print “Hello, World!” on the screen
- Explore basic Java features like garbage collection, automatic memory management, and platform independence
- Compare and contrast Java with C++ focusing on key differences (e.g., pointers vs. references)
- Write a program to demonstrate different data types (int, double, char, boolean), variables, and constants
- Implement a program demonstrating various arithmetic, relational, and logical operators
- Write a program using if, else if, and else statements for decision making based on conditions
- Explore switch statement for handling multiple conditions with examples
- Implement a program using for loop for iterating a specific number of times
- Write a program using while loop for iterating until a certain condition is met
- Create and initialize an integer array, access elements, and modify them
- Write a program to iterate through an array using loop constructs and print elements
- Implement a method to find the sum, average, or maximum element in an array
- Write a program demonstrating how to read user input using Scanner class
- Explore basic file I/O operations: reading and writing data to a text file
- Define a simple class with attributes and methods to represent a book object
- Create objects of the book class, set their attributes, and call methods to access data
- Implement constructor overloading to create objects with different initial values
- Write a program demonstrating static methods and accessing them directly using the class name
- Explore instance variables vs. class (static) variables and their scope within a class
- Create a subclass inheriting from the book class to represent a specific genre (e.g., Novel)
- Override methods in the subclass to provide specific functionalities related to the genre
- Implement method overriding and demonstrate runtime polymorphism through object references
- Write a program using abstract classes and interfaces, defining abstract methods and implementing them in subclasses
- Explore the concept of abstract classes and their usage for defining common behavior for subclasses
- Create and manipulate strings using various string methods (e.g., concatenation, substring extraction)
- Write a program to compare strings using comparison operators and methods like equals and equalsIgnoreCase
- Implement a program demonstrating basic exception handling using try-catch blocks
- Explore throwing and catching custom exceptions for specific error scenarios in your code
- Write a program using regular expressions for basic pattern matching within strings (e.g., validating email format)
- Explore generic classes like ArrayList and manipulate collections of objects
- Lambda Expressions: Write concise code for simple operations using lambda expressions. Multithreading: Implement basic multithreading concepts for concurrent execution
- Interfaces & Comparators: Define and use interfaces for defining common behavior across classes and implement comparators for sorting
- Object Cloning: Explore techniques for creating a copy of an object
SUGGESTED READING
Textbook:
- Core Java Volume I - Fundamentals, 12th Edition by Pearson. by Cay S. Horstmann O’rielly Publications. ISBN: 9780137673810
Reference Books:
- K. Sierra, Sun Certified Programmer For Java 5, Wiley India, 2006.
- K. Sierra and B. Bates, Head First Java (Java 5), 2nd Edition, O’Reilly, 2003.
- H.M. Dietel and P.J. Dietel, Java: How to Program, 6th Edition, Pearson Education, 2007.
- E. Balagurusamy, Programming with Java: A Primer, 4th Edition, Tata Mcgraw Hill, 2010.