NotesM.Sc ITJava Technologies
PGCA1939

Java Technologies Notes

Program:M.Sc IT
Semester:Semester 4
Credits:4
Units:4 Units

Subject Overview

Java Technologies covers core Java programming fundamentals (classes, arrays, strings, inheritance, interfaces and packages), and moves into exception handling, multithreading, applets, AWT, servlets and JDBC — building toward complete web-connected Java applications. A 4-credit core theory paper.

Unit-wise Syllabus

4 units — open any unit for detailed topic-wise notes, diagrams and important exam questions

  • Introduction to Java and its origin/features
  • Java API
  • variables
  • literals
  • primitive data types
  • the String class
  • operators
  • decision-making and looping statements
  • jump statements
ComparisonJava primitive data types
Size
Example

byte / short

8 / 16 bits

byte b = 10;

int / long

32 / 64 bits

long n = 9000L;

float / double

32 / 64 bits

double d = 3.14;

char

16 bits (Unicode)

char c = 'A';

boolean

true or false

boolean ok = true;

Study guide

This unit introduces Java: its origin and features, the API, variables, literals, primitive types, the String class, operators, decisions, loops and jump statements. Write and run programs as you learn.

Read Unit 1 notes
  • OOP basics
  • classes and objects
  • modifiers
  • passing arguments
  • constructors and overloading
  • static class members
  • garbage collection
  • arrays (single/multi-dimensional)
  • string handling classes
  • inheritance basics
  • overriding
  • polymorphism
  • abstract and final classes
  • packages and interfaces
ComparisonAbstract class vs interface
Abstract class
Interface

Methods

Abstract and concrete

Abstract, default and static

Variables

Any

Constants only (public static final)

Inheritance

extends one class

implements many interfaces

Use

Shared base with common code

Common contract across unrelated classes

Study guide

You study classes, objects, modifiers, constructors, overloading, static members, garbage collection, arrays, strings, inheritance, overriding, polymorphism, abstract and final classes, packages and interfaces. Draw class diagrams for every program.

Read Unit 2 notes
  • Try/catch/finally blocks
  • multiple and nested catch
  • throw statement
  • built-in exceptions
  • the Java thread model
  • thread priorities
  • synchronization
  • inter-thread communication
  • suspending/resuming/stopping threads
CycleJava thread life cycle
Java thread life cycle
1New
2Runnable
3Running
4Blocked or waiting
5Terminated
  1. 1. New: Thread created
  2. 2. Runnable: start() called
  3. 3. Running: Scheduler picks it
  4. 4. Blocked or waiting: sleep(), wait(), I/O
  5. 5. Terminated: run() finishes

Study guide

You study exception handling (try, catch, finally, throw, built-in exceptions) and multithreading: the thread model, priorities, synchronisation and inter-thread communication. Understand why synchronisation prevents race conditions.

Read Unit 3 notes
  • Applet class and lifecycle
  • graphics in applets
  • event handling
  • AWT window fundamentals
  • frame windows
  • graphics/color/fonts
  • servlet lifecycle and API
  • reading servlet parameters
  • handling HTTP requests/responses
  • cookies and session tracking
  • JDBC database connectivity
  • SQL queries
  • retrieving and updating data
ProcessServlet life cycle
  1. 1Load and instantiate
  2. 2init()

    Called once

  3. 3service()

    Handles each request: doGet, doPost

  4. 4destroy()

    Called before removal

Study guide

You study applets, AWT, event handling, servlets (lifecycle, parameters, requests, cookies and sessions) and JDBC with SQL queries and updates. Build a small servlet that reads from a database.

Read Unit 4 notes

Why Java Technologies Matters

Java powers enterprise applications and Android, and Java developer roles are plentiful, making it a reliable career skill.

How to Prepare for Java Technologies

  • Build a small web application using servlets and JDBC.
  • Learn exception handling and multithreading in depth.
  • Practise coding problems in Java regularly.

Java Technologies: Frequently Asked Questions

What is a servlet?

A servlet is a Java program that runs on a server to handle web requests and generate dynamic responses.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Java Technologies.