Lecture-1.pptx
Lecture-1.pptx
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
Galgotias University 2
At the end of this session students will be able
to
LEARNING OUTCOME
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
Galgotias University 6
HISTORY OF JAVA
Galgotias University 7
Learning Activity 1 : THINK-PAIR SHARE
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
Galgotias University 13
SUMMARY
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
Galgotias University 16
THANK YOU !
Galgotias University 17