Unit 1: Core Java Foundations
Syllabus Contents:
Java Overview: Evolution of Java, JVM, JDK, JRE Platform independence,
bytecode, WORA philosophy
Basic Java Syntax: Variables, data types (primitive & reference), type conversion
Operators and expressions Control Flow
Decision making: if/else, switch (including modern switch expressions), Loops:
for, while, do-while , Arrays & Strings: 1D & 2D arrays, String vs StringBuilder vs
StringBuffer
Introduction to Java Modules (JDK 9+) Basic idea of modularity, simple module
declarations, Input/Output Basics Console input using Scanner Printing,
formatting output
Case Study: Implement a console-based Student Management System to
demonstrate fundamental programming concepts.
Java Overview: Evolution of Java / Java Programming- History of Java
The history of java starts from Green [Link] was developed by James Gosling and his team at Sun
Microsystems in the early 1990s
Goal : to create a platform-independent programming language. Over the years, Java has evolved
significantly and become a major technology for enterprise, web, mobile, and cloud-based
applications.
Currently, Java is used in internet programming, mobile devices, games, e-business solutions etc.
There are given the major points that describes the history of java
1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June
1991. The small team of sun engineers called Green Team.
2) Originally designed for small, embedded systems in electronic appliances like set top boxes.
3) Firstly, it was called "Greentalk" by James Gosling and file extension [Link].
4) After that, it was called Oak and was developed as a part of the Green project.
Java follows the philosophy: "Write Once, Run Anywhere (WORA)"
This means a Java program can run on any device that has a Java Virtual
Machine (JVM).
Supports Object-Oriented Programming (OOP) concepts.
Known for platform independence, security, and robustness.
Java code is compiled into bytecode, which runs on the JVM.
Major LTS releases include Java 8, Java 11, Java 17, and Java 21.
1. Green Project (1991)
Initiated by Sun Microsystems.
Led by James Gosling.
Initially intended for consumer electronic devices like televisions and set-top boxes.
The language was first named Oak because of an oak tree outside Gosling's office.
2. Oak Language (1991–1994)
Features:
Platform independent
Secure
Object-oriented
Small and efficient
The name "Oak" had to be changed because it was already trademarked.
3. Java (1995)
The language was renamed Java, inspired by Java coffee.
Sun Microsystems officially launched Java in 1995.
Why Java Became Popular?
Simple: Easy to learn syntax, similar to C,C++ but eliminates complex features like pointers
Platform independent : Write Once, Run Anywhere (WORA)"
Object-oriented :- Supports core principles: Ecapsulation, Inheritance, Pollymorphism,
Abstraction
Secure : Strong security features, including bytecode verification , access control
Robust : Strong memory management (automatic garbage collection) , exception handling ,
and improves reliability
Portable
Multithreaded : Enable execution of multiple tasks concurrently
Automatic memory management
Rich standard libraries
Strong community support
High Performance: JIT: Just in Time compiler for runtime performance optimization , for
faster execution
Internet programming
Advantages of Java:-
Easy to learn
High security
Portable
Automatic garbage collection
Supports networking
Excellent for enterprise applications
Huge ecosystem and frameworks
Applications of Java:-
Java is widely used in:
Desktop applications
Web applications
Enterprise software
Android app development
Banking systems
Cloud computing
Big Data technologies
Internet of Things (IoT)