KTU OOP Java2024 Scheme • 60M ESE
Module 117 Theory Topics4 Official Diagrams

Introduction to Java & OOP

Starts from absolute zero: how Java compiles and runs on the JVM, primitive types & wrappers, arrays, strings, Vector, operators, control flow, methods/varargs, core OOP paradigms, microservices basics, and building objects with constructors and this.

Exam Focus: High-yield areas: JVM architecture diagram, JDK vs JRE vs JVM, type casting & autoboxing, operator precedence tracing, String vs Vector, OOP four pillars, microservices basics, constructor overloading, and this keyword.

Section 1: Introduction to Java

01

Introduction to Java, Features (Buzzwords) & Naming Conventions

Before writing a single line of Java, you need to understand what Java actually is and why industries trust it for everything from Android apps and banking servers to big-data engines. Unlike older languages tied to a single operating system or CPU, Java was engineered as both a programming language and a software platform so that code written once can run safely anywhere.

14m•HIGH PRIORITY• Includes Diagram
02

Structure of a Simple Java Program, CLI Compilation, PATH & JDK vs JRE vs JVM

Every Java application—from a three-line exam snippet to a banking backend—follows a strict structural skeleton and passes through two distinct phases: compilation (javac) and runtime execution (java). Understanding what each keyword in public static void main(String[] args) does and how JDK, JRE, and JVM relate guarantees easy 3-mark and 6-mark theory points.

15m•HIGH PRIORITY• Includes Diagram
03

Java Virtual Machine (JVM) Architecture & Complete Execution Process

The Java Virtual Machine (JVM) is the heart of Java's portability, memory safety, and performance. In KTU examinations, 'Draw and explain the architecture of JVM' is a cornerstone 6-mark or 9-mark Part B question. Knowing the three major subsystems—Class Loader, Runtime Data Areas, and Execution Engine—gives you full clarity on how Java actually executes in memory.

18m•HIGH PRIORITY• Includes Diagram
04

Variables, Literals, 8 Primitive Data Types & Overflow/Underflow

Java is a strongly typed language: every variable must declare its exact data type before use so the compiler can catch mismatched data early and allocate exact memory. Mastering Java's 8 primitive types, variable scopes (local, instance, static), and literals prevents countless bugs in code-tracing exam questions.

14m•HIGH PRIORITY
05

Type Casting (Widening & Narrowing), Type Promotion, Wrapper Classes & Autoboxing

Frequently, programs need to mix data types—say storing an int inside a double, squeezing a double into an int, or storing primitive numbers inside collections like Vector or ArrayList that only accept objects. Java solves this cleanly with two mechanisms: Type Casting (Widening/Narrowing) and Wrapper Classes (Autoboxing/Unboxing).

15m•HIGH PRIORITY
06

Arrays in Java: 1D, 2D, Jagged Arrays & Traversal

When you need to store marks for 60 students or represent a 3×3 matrix, creating 60 separate variables is impossible to maintain. Java arrays store fixed-size collections of elements of the same type under a single name—and importantly, in Java, every array is itself an object stored dynamically on the Heap!

13m•MEDIUM PRIORITY
07

Strings (Immutability & Methods) and the Vector Class

Text handling and resizable storage appear in almost every Java program. Unlike C where strings are raw char[] arrays ending in '\0', Java models strings as immutable java.lang.String objects packed with rich manipulation methods. And when you need an array that grows automatically at runtime, Java provides java.util.Vector.

16m•HIGH PRIORITY
08

Operators in Java, Bitwise/Shift Operators, Precedence & Associativity

Operators tell the JVM what computation or decision to perform on variables. In KTU exams, operators frequently appear in two forms: (1) explaining specialized Java operators like unsigned right shift (>>>) and short-circuit logical (&&, ||) vs bitwise (&, |), and (2) tracing tricky mixed expressions using operator precedence and associativity.

16m•HIGH PRIORITY
09

Control Statements: Selection, Iteration (incl. For-Each) & Jump Statements

Normally Java executes statements strictly top-to-bottom. Control statements give your program intelligence—allowing it to make decisions (Selection), repeat tasks (Iteration), or alter loop/method flow non-linearly (Jump).

15m•MEDIUM PRIORITY
10

Functions/Methods, Command-Line Arguments & Varargs (Variable-Length Arguments)

Breaking code into reusable methods keeps programs modular. Java also provides two flexible ways to pass input into methods: Command-Line Arguments (passing startup data into main from the terminal) and Varargs (letting any method accept zero, one, or many arguments of the same type without manually creating an array).

15m•HIGH PRIORITY
11

Overview of Classes, Abstract Classes & Interfaces

Module 1 concludes its Java foundations by introducing the three primary structural blueprints of Java programs: Concrete Classes, Abstract Classes, and Interfaces. While Modules 2 and 3 explore inheritance and interface hierarchies in full depth, understanding what separates these three constructs right now lets you read any Java program clearly.

13m•MEDIUM PRIORITY

Section 2: Object-Oriented Programming Concepts