0% found this document useful (0 votes)
2 views

Module_1_Introduction_to_Java

Module 1 introduces the Java programming language, covering its history, features, advantages, and disadvantages. It explains the execution process from Java source code to bytecode and details the internals of the Java Virtual Machine (JVM), including the class loader, bytecode verifier, JIT compiler, and garbage collector. Additionally, it outlines programming fundamentals such as running Java programs, using the Scanner class, variable declarations, and type casting.

Uploaded by

barachelmboumo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Module_1_Introduction_to_Java

Module 1 introduces the Java programming language, covering its history, features, advantages, and disadvantages. It explains the execution process from Java source code to bytecode and details the internals of the Java Virtual Machine (JVM), including the class loader, bytecode verifier, JIT compiler, and garbage collector. Additionally, it outlines programming fundamentals such as running Java programs, using the Scanner class, variable declarations, and type casting.

Uploaded by

barachelmboumo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Module 1: Introduction to Java Programming Language

1. Java Basics

- History: Java was developed by Sun Microsystems in 1995.

- Features: Platform-independent, object-oriented, secure, robust, etc.

- Advantages: Portability, large community, automatic memory management.

- Disadvantages: Slower performance compared to languages like C++ due to JVM overhead.

2. Execution Process

- Java source code (.java) is compiled into bytecode (.class) using the Java Compiler (javac).

- JVM (Java Virtual Machine) interprets or compiles bytecode to native machine code using the JIT

compiler.

3. JVM Internals

- Class Loader: Loads classes into memory dynamically.

- Bytecode Verifier: Ensures code is safe and follows Java security rules.

- JIT Compiler: Converts bytecode to machine code at runtime for better performance.

- Garbage Collector: Automatically deallocates memory used by unreferenced objects.

4. Programming Fundamentals

- Running Java Programs: Installation, IDE setup, writing and running the first program.

- Scanner Class: Used for handling user input from the console.

- Variables: Declaration, initialization, and use of types (int, float, etc.), use of 'final' keyword.

- Type Casting:

- Implicit (Widening): Automatic conversion from smaller to larger data type (e.g., int to double).

- Explicit (Narrowing): Manual conversion from larger to smaller data type (e.g., double to int).

You might also like