0% found this document useful (0 votes)
62 views17 pages

Lecture-1.pptx

The document provides an introduction to Java programming, covering its history, features, and learning outcomes for students. Java is a high-level, object-oriented, and platform-independent language known for its simplicity, security, and robustness. The session includes activities to engage students in understanding Java's key attributes and prepares them for future comparisons with other programming languages.

Uploaded by

Yamini Singh
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)
62 views17 pages

Lecture-1.pptx

The document provides an introduction to Java programming, covering its history, features, and learning outcomes for students. Java is a high-level, object-oriented, and platform-independent language known for its simplicity, security, and robustness. The session includes activities to engage students in understanding Java's key attributes and prepares them for future comparisons with other programming languages.

Uploaded by

Yamini Singh
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/ 17

INTRODUCTION TO JAVA

PROGRAMMING

Session No.: 1
Course Name: OOPS using Java
Course Code:R1UC201C
Duration: 50 minutes
Date of Conduction of Class: 4-02-2025

Galgotias University 1
SESSION OUTLINE

INTRODUCTION TO JAVA PROGRAMMING


HISTORY OF JAVA
FEATURES OF JAVA
EXAMPLES
CONCLUDE WITH AN ACTIVITY

Galgotias University 2
At the end of this session students will be able
to
LEARNING OUTCOME

Critically analyze Java’s features and compare them with another


programming language to evaluate its advantages and limitations in
different real-world applications.

Galgotias University 3
Which programming languages do you know or have heard
of? What makes a programming language popular?

EVENT CODE:
MMCPFA

Galgotias University 4
INTRODUCTION TO JAVA PROGRAMMING

• Java is a high-level, object-oriented, and platform-independent


programming language.

• Developed by James Gosling at Sun Microsystems in 1995.

• Designed for flexibility, security, and portability.

GSCALE full form and date 5


IMPORTANT TERMS
• HIGH LEVEL- High-level languages are programming languages used for
writing programs or software that humans and computers can understand. High-level
languages are easier to understand for humans because they use a lot of symbols
letters phrases to represent logic and instructions in a program.

• OBJECT-ORIENTED- The OOPs concept refers to programming languages that


use objects in programming. They use objects as a primary source to implement what
is to happen in the code.

• PLATFORM-INDEPENDENT- When we write Java code, it is first compiled by


the compiler and then converted into bytecode (which is platform-independent).
This byte code can run on any platform which has JVM installed.

Galgotias University 6
HISTORY OF JAVA

Galgotias University 7
Learning Activity 1 : THINK-PAIR SHARE

∙ Think individually about which Java feature (e.g., Object-Oriented,


Platform Independence) you find most important.

∙ Pair up and discuss why You chose that feature.

∙ Share insights with the class

Galgotias University 8
FEATURES OF JAVA

Galgotias University 9
1. Simple Syntax
Java syntax is very straight forward and very easy to learn. Java removes complex
features like pointers and multiple inheritance, which makes it more beginner-friendly.
2. Object-Oriented
Java is a pure object-oriented language. It supports core OOP concepts like objects,
classes, inheritance, encapsulations, abstractions and polymorphism.
3. Platform Independent
Java is platform-independent because of Java Virtual Machine (JVM).
• When we write Java code, it is first compiled by the compiler and then converted
into bytecode (which is platform-independent).
• This byte code can run on any platform which has JVM installed.

Galgotias University 10
4. Interpreted
Java code is not directly executed by the computer. It is first compiled into bytecode.
This byte code is then understand by the JVM. This enables Java to run on any
platform without rewriting code.
5. Portable
Java Byte code can be executed on any platform with the help of JVM. This means
once we write and compile our code, it can be used on different kind of devices
without any changes, making Java programs portable and easy to use anywhere.
7. Secured and Robust
Java ensures reliability through early error detection, runtime checks, and exception
handling. Java has built-in security features, like preventing the use of pointers and
providing a security manager, which help create safe, tamper-proof applications.

Galgotias University 11
8. Memory Management
Memory management in Java is automatically handled by the Java Virtual
Machine (JVM).
• Java garbage collector reclaim memory from objects that are no longer needed.
9. High Performance
Java is faster than old interpreted languages. Java program is first converted into
bytecode which is faster than interpreted code.
10. Multithreading
Multithreading in Java allows multiple threads to run at the same time.
• It improves CPU utilization and enhancing performance in applications that
require concurrent task execution.
• Multithreading is especially important for interactive and high-performance
applications, such as games and real-time systems.
Galgotias University 12
Learning Activity 2: WOO-CLAP
1. Who developed the Java programming language?
A) Dennis Ritchie
B) James Gosling
C) Bjarne Stroustrup
D) Guido van Rossum

2. What was the original name of Java?


A) OAK
B) Green
C) Coffee
D) NetBean

Galgotias University 13
SUMMARY

Java Overview: Java is a high-level, object-oriented programming language


developed by Sun Microsystems (now owned by Oracle). It follows the "Write Once,
Run Anywhere" (WORA) principle due to its platform-independent nature, enabled by
the Java Virtual Machine (JVM).

Key Features: Java is known for its simplicity, portability, security, and robustness. It
supports automatic memory management (Garbage Collection), multi-threading, and
exception handling, making it suitable for a wide range of applications, from web
development to mobile and enterprise software.

Java Development Components: Java programs are written using the Java
Development Kit (JDK), executed via the Java Runtime Environment (JRE), and
compiled into bytecode, which runs on the JVM. This architecture ensures
cross-platform compatibility and efficient execution.

Galgotias University 14
Ensure attainment of LOs in alignment
to the learning activities: outcomes
(1-2)

Outcome 1:
Students could evaluate Java features with in-depth
comparison to another language, backed by real-world
applications, performance analysis, case studies.

Galgotias University 15
UPCOMING SESSION

COMPARING C++ vs Java,

JVM Architecture (JDK, JRE, JVM)

Galgotias University 16
THANK YOU !

Galgotias University 17

You might also like