NotesM.Sc ITJava Technologies Laboratory
PGCA1940

Java Technologies Laboratory Notes

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

Subject Overview

The practical companion to Java Technologies, implementing arithmetic and expression evaluation, control-flow programs, array and matrix operations, inheritance and interfaces, exception handling, multithreading, and applet/servlet programs including cookies and session tracking. A 2-credit core lab paper.

Subject at a glance

1

Units

25

Topics

2

Credits

1

Infographics

Unit-wise Syllabus

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

  • Basic I/O and arithmetic operations
  • expression evaluation
  • average computation
  • volume calculations
  • multiplication tables
  • prime checking
  • Fibonacci series
  • factorial
  • quadratic equations
  • weekday generation
  • Pascal's triangle
  • array printing/sorting/rotation
  • matrix sum/difference/product/sparse-check
  • vowel/consonant counting
  • inheritance types
  • access specifiers
  • multiple inheritance via interfaces
  • package creation
  • built-in exception handling
  • thread model implementation
  • thread priority and synchronization
  • applets with text fields and buttons
  • JButton/JTextField listeners
  • servlet HTTP request/response handling
  • cookies and session tracking
ProcessJDBC connectivity steps
  1. 1

    Load the driver

  2. 2

    Open a Connection

    DriverManager.getConnection()

  3. 3

    Create a Statement or PreparedStatement

  4. 4

    Execute the query

  5. 5

    Process the ResultSet

  6. 6

    Close the connection

Study guide

In this lab you write Java programs on I/O and arithmetic, expressions, volumes, tables, primes, Fibonacci, factorial, quadratics, weekdays, Pascal's triangle, arrays and matrices, string analysis, inheritance types, access specifiers, interfaces, packages, exception handling, threads and further programs. Run each with edge-case inputs.

Read Unit 1 notes

Why Java Technologies Laboratory Matters

These are the standard programs in placement coding rounds and form the base for larger Java projects.

How to Prepare for Java Technologies Laboratory

  • Write each program yourself and test it.
  • Use an IDE and its debugger.
  • Prepare to explain logic in the viva.

Java Technologies Laboratory: Frequently Asked Questions

What programs are in the Java lab?

Core Java programs on control flow, arrays, strings, OOP, packages, exceptions and threads.

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 Laboratory.