Heheh

The basic structure of a Java program is based on the concept of classes. Every executable Java program must contain at least one class definition.
💻 Essential Structure of a Java Program
A typical Java application will have the following hierarchical structure: 1. Package Statement (Optional)
The very first statement in a Java source file (if present) is the package statement. It organizes classes into logical groups, preventing naming conflicts.
 * Syntax: package package_name;
 * Example: package

...

See on Student Notes »

hhhvashjva

An interceptor is a class or method that intercepts EJB method calls or lifecycle events. It is used for common tasks like logging, security, transactions, and auditing. It helps avoid dupli

cate code and keeps bu

  • Page 1 
  • Page 2 
  • new-page.pngsiness logic separate from system logic. Interceptors can be defined as a separate class or inside the bean. They use annotations to define behavior.

@AroundInvoke is used for method interception, while @PostConstruct and @PreDestroy are used for lifecycle interception.

...

See on Student Notes »

civil

Chapter 2:



Counter Claim Section 66(1) – Sessions Court: Can hear the case even if the counterclaim is bigger than the plaintiff’s claim, but cannot award more than its own limit (e.g., max RM1 million).

Section 66(2) – High court: Any party can apply to move the whole case to the High Court, which has no monetary limit.

Issue: Claim = Principal (within limit) + Interest (pushes total over limit)

Foo Sey Koh v Chua Seng Seng (1986): Only count interest up to the date of filing (not after

...

See on Student Notes »

Midterm 2 Review

Chapter 5: Synchronization

Critical Section Conditions

  • Mutual Exclusion: Only one process in CS at a time.
  • Progress: If CS empty, some waiting process can enter.
  • Bounded Waiting: No starvation; each process waits a bounded number of turns.

Atomic Instructions

  • TestAndSet: old = *b; *b = TRUE; return old
  • Swap: temp = *a; *a = *b; *b = temp

Spinlocks

  • TAS:
    bool m=false;
    lock(){ while(TestAndSet(&m)); }
    unlock(){ m=false; }
    
  • Swap:
    bool m=false;
    lock(){ bool key=true; while(key) Swap(&m,
...

See on Wikiteka »

Biomolecules

0

1️⃣ Carbohydrates

Definition:

Optically active polyhydroxy aldehydes or ketones or compounds that yield them on hydrolysis.

General Formula: Cₓ(H₂O)ᵧ
Name origin: “Carbo” = carbon, “hydrate” = water.

Type Definition Examples
Monosaccharides Can’t be hydrolyzed further Glucose, Fructose, Ribose
Oligosaccharides Yield 2–10 monosaccharide units Disaccharides → Sucrose, Maltose, Lactose
Polysaccharides Yield many monosaccharides Starch, Cellulose, Glycogen

Reducing

...

See on Student Notes »

Game ptogramming

1. Game Engine Architecture (with Diagram)

A game engine is software that helps create and run games by managing graphics, audio, input, and logic.
Main parts:

Graphics Engine: Renders images and animations using GPU.

Audio Engine: Manages music and sound effects.

Input Module: Handles input from keyboard, mouse, and gamepads.

Device APIs/DLLs: Connects engine to hardware.
Game Logic & Main Loop: Controls gameplay and timing.



2. Resources and File System

Resources are external data like images,

...

See on Student Notes »

Education

✅ Clean + Condensed Version (Week 1 Notes)
The Alice Springs (Mparntwe) Education Declaration (2019) sets the national goals for Australian education, replacing the Melbourne Declaration (2009) and Adelaide Declaration (1999). Over 20 years, ministers have articulated the big-picture goals all assessment must work toward:
1. Excellence
2. Equity – fairness (not equality), providing each student what they individually need. Goal 2 applies to all young Australians, including students with disability,
...

See on Student Notes »

econ ex 2

CHAPTER 11 – UNEMPLOYMENT & LABOR MARKETS

BLS Household Survey

  • 60,000 households monthly

  • Population: 333,287,557

    • Age 17+: 269,523,012

    • Children: 63,764,545

    • Civilian Noninstitutional Population: 263,973,000

    • Labor Force: 164,287,000

      • Employed: 158,291,000

      • Unemployed: 5,996,000

      • Not in Labor Force: 99,686,000

Key Formulas:

  • Unemployment Rate (UR) = (Unemployed / Labor Force) × 100 → 3.7%

  • Labor Force Participation Rate (LFPR) = (Labor Force / Civilian Noninstitutional

...

See on Wikiteka »

Playwriting THD104.docx

Convolutional Neural Networks, or CNNs, are a special class of deep learning models designed primarily for analyzing visual data such as images and videos. Unlike traditional fully connected neural networks, CNNs are built to automatically and adaptively learn spatial hierarchies of features through convolution operations. The main components of a CNN include convolutional layers, activation layers, pooling layers, and fully connected layers. The convolutional layer applies small filters (also called

...

See on Student Notes »