A topic-wise ebook covering the complete Unit 1 sequence, from Java fundamentals to exception handling.
Semester 5 - 24CSH-301 / 24ITH-301
Unit 1: Java Fundamentals, OOP, and Exception Handling
Object-Oriented Programming (OOP) organises software around objects that combine state with behaviour.
Course Outcome (CO) states what a learner should be able to do after the course; CO1 to CO5 label the five syllabus outcomes.
A topic-wise ebook for Unit 1. It progresses from Java fundamentals (CO1),
through object-oriented programming (CO2), to exception handling (CO3),
with worked examples, diagrams, practice problems, and quick-check questions
in every topic.
Course MentorProf. (Dr.) Harish K Mittal
Syllabus Coverage
Introduction to Java
Difference between C++ and Java
Keywords, tokens, and data types
Arrays, packages, imports, and command-line arguments
Use of public, private, and protected
Supporting fundamentals: variables, constants, operators, casting, and Scanner
Classes, inner classes, inheritance, abstraction, polymorphism, and encapsulation
Method overloading and overriding
Exception hierarchy, handling, checked and unchecked types, and custom exceptions
Java Virtual Machine (JVM) runs Java bytecode, the instructions produced by a Java compiler, and manages runtime tasks such as memory allocation. Java Development Kit (JDK) provides the compiler, runtime and other tools needed to build and run Java programs. Java Runtime Environment (JRE) provides the virtual machine and libraries needed to run Java programs; modern development kits include these runtime components. Write Once, Run Anywhere (WORA) describes Java's goal of running compatible bytecode on different systems that provide a suitable runtime.