SlideShare a Scribd company logo
www.webstackacademy.com ‹#›
Java Programming
Language SE – 6
Module 1: Getting Started
Module 1: Getting Started
Objectives
Upon completion of this module, you should be able to:
Describe the key features of Java technology●
Write, compile and run simple java application●
Describe the function of the Java virtual machine●
Define garbage collection●
List the three task perform by Java that handle code security●
Relevance
Is the Java programming language a complete language or is it●
useful only for writing programs for the Web?
Why do you need another programming language?●
This material also serves as a guide for Oracle Certified Java Professional
(OCJP), by making the flow in alignment with prescribed syllabus
What is Java Technology?
Java technology is:●
A programming language–
A development environment–
An application environment–
A deployment environment–
It is similar in syntax to C++.●
It is used for developing the applications.●
Thanks to its scalable nature, Java has emerged as the most preferred language
in Web and Mobile application development
Primary Goals of the
Java Technology
Provides an easy-to-use language by:●
Avoiding many pitfalls of other languages–
Being object-oriented–
Enabling users to create streamlined and clear code–
Provides an interpreted environment for:●
Improved speed of development–
Code portability–
Primary Goals of the
Java Technology
Enables users to run more than one thread of activity●
● Loads classes dynamically; that is, at the time they are actually
needed
Supports changing programs dynamically during runtime by loading
classes from disparate sources
●
●
Furnishes better security
Primary Goals of the
Java Technology
The following features fulfill these goals:
The Java Virtual Machine (JVMTM) 1●
Garbage collection●
The Java Runtime Environment (JRE)●
JVM tool interface●
The Java Virtual Machine
Provides hardware platform specifications●
Reads compiled byte codes that are platform-independent●
Is implemented as software or hardware●
Is implemented in a Java technology development tool or a Web●
browser
The Java Virtual Machine(JVM) make the code run in any platform, thereby
making it platform independent
Architecture of Java Virtual Machine
The Java Virtual Machine
JVM provides definitions for the:
Instruction set (central processing unit [CPU])●
Register set●
Class file format●
Stack●
Garbage-collected heap●
Memory area●
Fatal error reporting●
High-precision timing support●
The Java Virtual Machine
The majority of type checking is done when the code is compiled.●
Implementation of the JVM approved by Sun Microsystems must be
able to run any compliant class file.
●
The JVM executes on multiple operating environments.●
Garbage Collection
Allocated memory that is no longer needed should be deallocated.●
In other languages, deallocation is the programmer’s responsibility.●
The Java programming language provides a system-level thread to
track memory allocation.
●
Garbage Collection
Allocated memory that is no longer needed should be deallocated.●
In other languages, deallocation is the programmer’s responsibility.●
The Java programming language provides a system-level thread to
track memory allocation.
●
Garbage Collection
Garbage collection has the following characteristics:
Checks for and frees memory no longer needed●
Is done automatically●
Can vary dramatically across JVM implementations●
The Java Runtime
Environment
JRE With a Just-In-Time
(JIT) Compiler
JVM Tasks
The JVM performs three main tasks:
Loads code●
●
●
Verifies code
Executes code
The Class Loader
Loads all classes necessary for the execution of a program●
Maintains classes of the local file system in separate namespaces●
Prevents spoofing●
The Bytecode Verifier
The code adheres to the JVM specification.●
The code does not violate system integrity.●
The code causes no operand stack overflows or underflows.●
The parameter types for all operational code are●
correct.
No illegal data conversions (the conversion of integers to pointers)●
have occurred.
Steps to install JDK for windows
Step 1: Download JDK for windows.
Step 2: Open and Run the file.
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Step 3: How to set Environment Variables?
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
Core Java Programming Language (JSE) : Chapter I - Getting Started
A Simple Java Application
The Test.java Application
//
// Sample "Hello World" application
//
public class Test{
public static void main (String[] args) {
System.out.println(“Hello World”);
}
}
Compiling and Running
the TestGreeting Program
Compile Test.java:
Syntax: javac filename.java
●
javac Test.java
The Test.java is compiled.●
Run the application by using the following command:●
Syntax: java filename
java Test
Locate common compile and runtime errors.●
Java Technology Runtime
Environment
Thank You

More Related Content

What's hot (20)

PPTX
QSpiders - Memory (JVM architecture)
Qspiders - Software Testing Training Institute
 
PDF
Lec 3 01_aug13
Palak Sanghani
 
PPTX
Chapter 1.3
sotlsoc
 
PDF
02 java programming features of java i
Ravi Patki
 
PPTX
Java 1
KadarkaraiSelvam
 
PPTX
Java virtual machine
Nikhil Sharma
 
PPTX
Java architecture
Rakesh
 
PPTX
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
PDF
Java introduction
Kuppusamy P
 
PPTX
Java introduction
NAVEENA ESWARAN
 
PPTX
Java virtual machine
Dhanith Krishna
 
PDF
itft-Java evolution
Atul Sehdev
 
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
DOCX
JDK,JRE,JVM
Cognizant
 
PPTX
Framework
Seungjoon Lee
 
PPTX
Presentation on java (8)
Shwetakant1
 
PPT
Byte code jvm
myrajendra
 
QSpiders - Memory (JVM architecture)
Qspiders - Software Testing Training Institute
 
Lec 3 01_aug13
Palak Sanghani
 
Chapter 1.3
sotlsoc
 
02 java programming features of java i
Ravi Patki
 
Java virtual machine
Nikhil Sharma
 
Java architecture
Rakesh
 
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
Java introduction
Kuppusamy P
 
Java introduction
NAVEENA ESWARAN
 
Java virtual machine
Dhanith Krishna
 
itft-Java evolution
Atul Sehdev
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
JDK,JRE,JVM
Cognizant
 
Framework
Seungjoon Lee
 
Presentation on java (8)
Shwetakant1
 
Byte code jvm
myrajendra
 

Similar to Core Java Programming Language (JSE) : Chapter I - Getting Started (20)

PPTX
Introduction to java
Java Lover
 
PPT
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
PPT
1 Introduction To Java Technology
dM Technologies
 
PPT
1 Introduction To Java Technology
dM Technologies
 
PPTX
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
PPTX
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
PDF
Introduction java programming
Nanthini Kempaiyan
 
PPS
Introduction to Java
Ankita Totala
 
PDF
What is-java
Shahid Rasheed
 
PPTX
Java fundamentals
Om Ganesh
 
PPT
J2ee strutswithhibernate-140121221332-phpapp01
Jay Palit
 
PDF
Java unit 1
Shipra Swati
 
PPTX
1_Introduction to Java.pptx java programming
amitraj53904
 
PPTX
Skillwise Elementary Java Programming
Skillwise Group
 
PDF
What is java
javaicon
 
PPTX
Java chapter 1 basic introduction Unit-1.pptx
noosdysharma
 
PPSX
JAVA.ppsx java code java edv java development
wannabekrishna0
 
PPT
What is Java and How its is Generated
javaease
 
PDF
Java - At a glance
Nitish Baranwal
 
PPTX
Java ms harsha
Harsha Batra
 
Introduction to java
Java Lover
 
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
1 Introduction To Java Technology
dM Technologies
 
1 Introduction To Java Technology
dM Technologies
 
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
Introduction java programming
Nanthini Kempaiyan
 
Introduction to Java
Ankita Totala
 
What is-java
Shahid Rasheed
 
Java fundamentals
Om Ganesh
 
J2ee strutswithhibernate-140121221332-phpapp01
Jay Palit
 
Java unit 1
Shipra Swati
 
1_Introduction to Java.pptx java programming
amitraj53904
 
Skillwise Elementary Java Programming
Skillwise Group
 
What is java
javaicon
 
Java chapter 1 basic introduction Unit-1.pptx
noosdysharma
 
JAVA.ppsx java code java edv java development
wannabekrishna0
 
What is Java and How its is Generated
javaease
 
Java - At a glance
Nitish Baranwal
 
Java ms harsha
Harsha Batra
 
Ad

More from WebStackAcademy (20)

PDF
Webstack Academy - Course Demo Webinar and Placement Journey
WebStackAcademy
 
PDF
WSA: Scaling Web Service to Handle Millions of Requests per Second
WebStackAcademy
 
PDF
WSA: Course Demo Webinar - Full Stack Developer Course
WebStackAcademy
 
PDF
Career Building in AI - Technologies, Trends and Opportunities
WebStackAcademy
 
PDF
Webstack Academy - Internship Kick Off
WebStackAcademy
 
PDF
Building Your Online Portfolio
WebStackAcademy
 
PDF
Front-End Developer's Career Roadmap
WebStackAcademy
 
PDF
Angular - Chapter 9 - Authentication and Authorization
WebStackAcademy
 
PDF
Angular - Chapter 7 - HTTP Services
WebStackAcademy
 
PDF
Angular - Chapter 6 - Firebase Integration
WebStackAcademy
 
PDF
Angular - Chapter 5 - Directives
WebStackAcademy
 
PDF
Angular - Chapter 4 - Data and Event Handling
WebStackAcademy
 
PDF
Angular - Chapter 3 - Components
WebStackAcademy
 
PDF
Angular - Chapter 2 - TypeScript Programming
WebStackAcademy
 
PDF
Angular - Chapter 1 - Introduction
WebStackAcademy
 
PDF
JavaScript - Chapter 10 - Strings and Arrays
WebStackAcademy
 
PDF
JavaScript - Chapter 15 - Debugging Techniques
WebStackAcademy
 
PDF
JavaScript - Chapter 14 - Form Handling
WebStackAcademy
 
PDF
JavaScript - Chapter 13 - Browser Object Model(BOM)
WebStackAcademy
 
PDF
JavaScript - Chapter 12 - Document Object Model
WebStackAcademy
 
Webstack Academy - Course Demo Webinar and Placement Journey
WebStackAcademy
 
WSA: Scaling Web Service to Handle Millions of Requests per Second
WebStackAcademy
 
WSA: Course Demo Webinar - Full Stack Developer Course
WebStackAcademy
 
Career Building in AI - Technologies, Trends and Opportunities
WebStackAcademy
 
Webstack Academy - Internship Kick Off
WebStackAcademy
 
Building Your Online Portfolio
WebStackAcademy
 
Front-End Developer's Career Roadmap
WebStackAcademy
 
Angular - Chapter 9 - Authentication and Authorization
WebStackAcademy
 
Angular - Chapter 7 - HTTP Services
WebStackAcademy
 
Angular - Chapter 6 - Firebase Integration
WebStackAcademy
 
Angular - Chapter 5 - Directives
WebStackAcademy
 
Angular - Chapter 4 - Data and Event Handling
WebStackAcademy
 
Angular - Chapter 3 - Components
WebStackAcademy
 
Angular - Chapter 2 - TypeScript Programming
WebStackAcademy
 
Angular - Chapter 1 - Introduction
WebStackAcademy
 
JavaScript - Chapter 10 - Strings and Arrays
WebStackAcademy
 
JavaScript - Chapter 15 - Debugging Techniques
WebStackAcademy
 
JavaScript - Chapter 14 - Form Handling
WebStackAcademy
 
JavaScript - Chapter 13 - Browser Object Model(BOM)
WebStackAcademy
 
JavaScript - Chapter 12 - Document Object Model
WebStackAcademy
 
Ad

Recently uploaded (20)

PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Digital Circuits, important subject in CS
contactparinay1
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 

Core Java Programming Language (JSE) : Chapter I - Getting Started

  • 1. www.webstackacademy.com ‹#› Java Programming Language SE – 6 Module 1: Getting Started Module 1: Getting Started
  • 2. Objectives Upon completion of this module, you should be able to: Describe the key features of Java technology● Write, compile and run simple java application● Describe the function of the Java virtual machine● Define garbage collection● List the three task perform by Java that handle code security●
  • 3. Relevance Is the Java programming language a complete language or is it● useful only for writing programs for the Web? Why do you need another programming language?● This material also serves as a guide for Oracle Certified Java Professional (OCJP), by making the flow in alignment with prescribed syllabus
  • 4. What is Java Technology? Java technology is:● A programming language– A development environment– An application environment– A deployment environment– It is similar in syntax to C++.● It is used for developing the applications.● Thanks to its scalable nature, Java has emerged as the most preferred language in Web and Mobile application development
  • 5. Primary Goals of the Java Technology Provides an easy-to-use language by:● Avoiding many pitfalls of other languages– Being object-oriented– Enabling users to create streamlined and clear code– Provides an interpreted environment for:● Improved speed of development– Code portability–
  • 6. Primary Goals of the Java Technology Enables users to run more than one thread of activity● ● Loads classes dynamically; that is, at the time they are actually needed Supports changing programs dynamically during runtime by loading classes from disparate sources ● ● Furnishes better security
  • 7. Primary Goals of the Java Technology The following features fulfill these goals: The Java Virtual Machine (JVMTM) 1● Garbage collection● The Java Runtime Environment (JRE)● JVM tool interface●
  • 8. The Java Virtual Machine Provides hardware platform specifications● Reads compiled byte codes that are platform-independent● Is implemented as software or hardware● Is implemented in a Java technology development tool or a Web● browser The Java Virtual Machine(JVM) make the code run in any platform, thereby making it platform independent
  • 9. Architecture of Java Virtual Machine
  • 10. The Java Virtual Machine JVM provides definitions for the: Instruction set (central processing unit [CPU])● Register set● Class file format● Stack● Garbage-collected heap● Memory area● Fatal error reporting● High-precision timing support●
  • 11. The Java Virtual Machine The majority of type checking is done when the code is compiled.● Implementation of the JVM approved by Sun Microsystems must be able to run any compliant class file. ● The JVM executes on multiple operating environments.●
  • 12. Garbage Collection Allocated memory that is no longer needed should be deallocated.● In other languages, deallocation is the programmer’s responsibility.● The Java programming language provides a system-level thread to track memory allocation. ●
  • 13. Garbage Collection Allocated memory that is no longer needed should be deallocated.● In other languages, deallocation is the programmer’s responsibility.● The Java programming language provides a system-level thread to track memory allocation. ●
  • 14. Garbage Collection Garbage collection has the following characteristics: Checks for and frees memory no longer needed● Is done automatically● Can vary dramatically across JVM implementations●
  • 16. JRE With a Just-In-Time (JIT) Compiler
  • 17. JVM Tasks The JVM performs three main tasks: Loads code● ● ● Verifies code Executes code
  • 18. The Class Loader Loads all classes necessary for the execution of a program● Maintains classes of the local file system in separate namespaces● Prevents spoofing●
  • 19. The Bytecode Verifier The code adheres to the JVM specification.● The code does not violate system integrity.● The code causes no operand stack overflows or underflows.● The parameter types for all operational code are● correct. No illegal data conversions (the conversion of integers to pointers)● have occurred.
  • 20. Steps to install JDK for windows Step 1: Download JDK for windows.
  • 21. Step 2: Open and Run the file.
  • 27. Step 3: How to set Environment Variables?
  • 37. A Simple Java Application The Test.java Application // // Sample "Hello World" application // public class Test{ public static void main (String[] args) { System.out.println(“Hello World”); } }
  • 38. Compiling and Running the TestGreeting Program Compile Test.java: Syntax: javac filename.java ● javac Test.java The Test.java is compiled.● Run the application by using the following command:● Syntax: java filename java Test Locate common compile and runtime errors.●