SlideShare a Scribd company logo
1
JAVA PROGRAMMING
By
Dr.T.Abirami
Associate Professor
Department of IT
Kongu Engineering College Perundurai
2/3/2021
2
Introduction
2/3/2021
Author ,Year and Company
 Started in 1995 by SUN Microsystems
 James gosling, Arthur Van hoff, Andy
bechtolsheim
3
James Gosling
Oak is a symbol of strength
2/3/2021
Java Indroduction
 It is programming language
 It is class based and object oriented
programming language
 It is a platform independent language
 Java is both compiler and interpreter
language
 Java follows a bottom-up approach
4
2/3/2021
Real-World Java Applications
 Desktop GUI Applications
 Android Apps
 Web Applications
 Software Tools
 Trading Application
 J2ME Apps
 Embedded Space
 Big Data technologies
 Scientific Applications
5
2/3/2021
Example
 Banking: To deal with transaction management.
 Retail: Billing applications that you see in a
store/restaurant are completely written in Java.
 Information Technology: Java is designed to solve
implementation dependencies.
 Android: Applications are either written in Java or use Java
API.
 Financial services: It is used in server-side applications.
 Stock market: To write algorithms as to which company
they should invest in.
 Big Data: Hadoop MapReduce framework is written using
Java.
 Scientific and Research Community: To deal with huge
amount of data.
6
2/3/2021
Application
 Desktop Applications such as acrobat reader,
media player, antivirus, etc.
 Web Applications
 Enterprise Applications such as banking
applications.
 Mobile
 Embedded System
 Smart Card
 Robotics
 Games, etc.
7
2/3/2021
Where it is used?
 1. Google's (Gmail & Youtube) is built
on Java/some other lang.
2. Twitter (Netty) & Linkedin uses Java
& Scala.
3. Amazon, Ebay, Blogger uses almost
Java.
8
2/3/2021
Types of Java Applications
 1) Standalone Application
 2) Web Application
 3) Enterprise Application
 4) Mobile Application
9
2/3/2021
Java Editions
 1) Java SE (Java Standard Edition) - It is a
Java programming platform.
 2) Java EE (Java Enterprise Edition) - It is an
enterprise platform which is mainly used to develop web and
enterprise applications.
 3) Java ME (Java Micro Edition) - to develop
mobile applications.
 4) JavaFX-to develop rich internet applications.
10
2/3/2021
Popular companies
 Uber
 Airbnb
 Google
 Pinterest
 Netflix
 Spotify
 Amazon
 Slack
 Instagram, etc.
11
2/3/2021
Java Version History
 JDK Alpha and Beta (1995)
 JDK 1.0 (23rd Jan 1996)
 JDK 1.1 (19th Feb 1997)
 J2SE 1.2 (8th Dec 1998)
 J2SE 1.3 (8th May 2000)
 J2SE 1.4 (6th Feb 2002)
 J2SE 5.0 (30th Sep 2004)
 Java SE 6 (11th Dec 2006)
 Java SE 7 (28th July 2011)
 Java SE 8 (18th Mar 2014)
 Java SE 9 (21st Sep 2017)
 Java SE 10 (20th Mar 2018)
 Java SE 11 and 14 ,15
12
2/3/2021
A Step By Step Guide To How To
Setup Eclipse IDE On Windows?
 Install Java
 Setup Eclipse IDE on Windows
 Hello World Program
13
2/3/2021
How to Download and Install
Eclipse to Run Java
 Step 1: Go to the Java Downloads Page and click
on the option of Download.
https://www.oracle.com/in/java/technologies/jav
ase-downloads.html
 2. Setup path
14
2/3/2021
Set the path for Java(JDK)
 Step 2: Once the installation is over
follow the below instructions to set the
path of the file.
 Go to start and search for ‘System’. Then,
click on ‘System’ and go to Advanced
System Settings. Refer below.
15
2/3/2021
Now, click on ‘Environment Variables’
under ‘Advanced’ tab as shown below:
16
2/3/2021
Install Eclipse:
https://www.eclipse.org/downloads/packag
es/release/Neon/2
17
2/3/2021
JDK, JRE, and JVM
JVM
 JVM (Java Virtual Machine) is an abstract
machine.
 It is called a virtual machine because it doesn't
physically exist.
 It is a specification that provides a runtime
environment in which Java bytecode can be
executed.
 It can also run those programs which are written
in other languages and compiled to Java
bytecode.
18
2/3/2021
The JVM performs the following
main tasks:
 Loads code
 Verifies code
 Executes code
 Provides runtime environment
19
Execution Engine :It contains:
• A virtual processor
• Interpreter: Read bytecode stream then execute the instructions.
• Just-In-Time(JIT) compiler:
•It is used to improve the performance.
•JIT compiles parts of the byte code that have similar functionality at the same time,
and hence reduces the amount of time needed for compilation.
• Here, the term "compiler" refers to a translator from the instruction set of a Java
virtual machine (JVM) to the instruction set of a specific CPU.
2/3/2021
JRE
 JRE is an acronym for Java Runtime Environment.
 It is also written as Java RTE.
 It is a set of software tools which are used for
developing Java applications.
 It is used to provide the runtime environment.
 It is the implementation of JVM.
 It physically exists.
 It contains a set of libraries + other files that JVM
uses at runtime.
20
2/3/2021
JDK(Java Development Kit)
 It is a software development environment which is used to
develop Java applications and applets.
 It physically exists.
 It contains JRE + development tools.
 The JDK contains a private Java Virtual Machine (JVM) and a few
other resources such as an interpreter/loader (java), a compiler
(javac), an archiver (jar), a documentation generator (Javadoc),
etc. to complete the development of a Java Application.
21
2/3/2021
Learning Objectives
 To learn why Java is useful for the design of desktop , web and mobile
applications.
 To learn how to implement object-oriented designs with Java.
 To identify Java language components and how they work together in
applications.
 To design and program stand-alone Java applications.
 To learn how to design a graphical user interface (GUI) with Java AWT.
 To learn how to extend Java classes with inheritance and dynamic binding.
 To learn how to use exception handling in Java applications.
 To learn Java generics and how to use the Java Collections API.
 To understand how to design applications with threads in Java.
 To learn how to read and write files in Java.
22
2/3/2021
18ITO03 - JAVA
PROGRAMMING
23
2/3/2021
24
2/3/2021
LABORATORY
25
2/3/2021
26
First Program
public class HelloWorld {
public static void main(String args[])
{
System.out.println("Hello World");
}
}
2/3/2021
27
Compiling and Running
HelloWorld.java
javac HelloWorld.java
java HelloWorld HelloWorld.class
compile
run
bytecode
source code
2/3/2021
Why is JAVA a platform independent
language?
28
platform is the computer and the operating system running on it. The operating system can be
Windows, Mac, Linux, or any of many others It provides the environment to run the program
2/3/2021
Compiled Programs With Different
Operating Systems
Windows
compiler
Executable (Windows)
UNIX
compiler
Executable (UNIX)
Mac OS
compiler
Executable (Mac)
Computer
program
29
2/3/2021
A High Level View Of
Translating/Executing Java Programs
Java compiler
(javac)
Java program
Filename.java
Java
bytecode
(generic
binary)
Filename.class
Stage 1:
Compilation
30
2/3/2021
A High Level View Of
Translating/Executing Java Programs (2)
Java
interpreter
(java)
Java
bytecode
(generic
binary)
Filename.class
Machine language
instruction (UNIX)
Machine language
instruction
(Windows)
Machine language
instruction (Apple)
Stage 2: Interpreting and executing the
byte code
31
2/3/2021
Creating, Compiling And Running Java
Programs On The Computer Science
Network
javac
Java compiler
Java byte
code
filename.class
(UNIX file)
To compile the program
at the command line type
"javac filename.java"
To run the interpreter,
at the command line
type "java filename"
java
Java
Interpreter
Type it in with the text editor of
your choice
filename.java
(Unix file)
Java
program
32
2/3/2021
Compiling The Smallest Java Program
public class Smallest
{
public static void main (String[] args)
{
}
}
Smallest.java
javac
(Java byte code)
10000100000001000
00100100000001001
: :
Smallest.class
Type “javac
Smallest.java”
33
2/3/2021
Running The Smallest Java Program
(Java byte code)
10000100000001000
00100100000001001
: :
Smallest.class
java
Type “java
Smallest”
(Platform/Operating specific binary
10100111000001000
00100111001111001
: :
34
2/3/2021
35
Notice:
 Java is CASE SENSITIVE!!
 File name has to be the same as class
name in file.
 Need to import necessary class definitions
2/3/2021

More Related Content

What's hot (17)

Android summer training report
Android summer training reportAndroid summer training report
Android summer training report
Shashendra Singh
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)
mafffffe19
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1
RubaNagarajan
 
Summer training report on java se6 technology
Summer training  report on java se6 technologySummer training  report on java se6 technology
Summer training report on java se6 technology
Shamsher Ahmed
 
Core java kvr - satya
Core  java kvr - satyaCore  java kvr - satya
Core java kvr - satya
Satya Johnny
 
Java application-development
Java application-developmentJava application-development
Java application-development
Deepika Chaudhary
 
Core Java Training report
Core Java Training reportCore Java Training report
Core Java Training report
Sumit Kumar Sharma
 
Advance java summer training report
Advance java summer training report Advance java summer training report
Advance java summer training report
Nitesh Saini
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
Vibrant Technologies & Computers
 
Industrial Training report on java
Industrial  Training report on javaIndustrial  Training report on java
Industrial Training report on java
Softvision Info Solutions Private Limited
 
130700548484460000
130700548484460000130700548484460000
130700548484460000
Tanzeel Ahmad
 
Core java report
Core java reportCore java report
Core java report
Sumit Jain
 
Report summer training core java
Report summer training core javaReport summer training core java
Report summer training core java
SudhanshuVijay3
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
shwanjava
 
J introtojava1-pdf
J introtojava1-pdfJ introtojava1-pdf
J introtojava1-pdf
Emmanuel Alimpolos
 
Ijetcas14 385
Ijetcas14 385Ijetcas14 385
Ijetcas14 385
Iasir Journals
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
Hoang Nguyen
 

Similar to Java Programming : introduction (20)

1_Introduction to Java.pptx java programming
1_Introduction to Java.pptx java programming1_Introduction to Java.pptx java programming
1_Introduction to Java.pptx java programming
amitraj53904
 
01. Introduction to programming with java
01. Introduction to programming with java01. Introduction to programming with java
01. Introduction to programming with java
Intro C# Book
 
Java - At a glance
Java - At a glanceJava - At a glance
Java - At a glance
Nitish Baranwal
 
Java-Unit-I.ppt
Java-Unit-I.pptJava-Unit-I.ppt
Java-Unit-I.ppt
RameswarGprec
 
java intro.pptx
java intro.pptxjava intro.pptx
java intro.pptx
MangaiyarkarasiDurai
 
JAVA.ppsx java code java edv java development
JAVA.ppsx java code java edv java developmentJAVA.ppsx java code java edv java development
JAVA.ppsx java code java edv java development
wannabekrishna0
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
YounasKhan542109
 
Corejava
Corejava Corejava
Corejava
Harshit Sachdeva
 
Pi j1.1 what-is-java
Pi j1.1 what-is-javaPi j1.1 what-is-java
Pi j1.1 what-is-java
mcollison
 
Java interview question
Java interview questionJava interview question
Java interview question
simplidigital
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
Om Ganesh
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
Pratima Parida
 
Java
JavaJava
Java
Snehal Shahane
 
j-chap1-Basics.ppt
j-chap1-Basics.pptj-chap1-Basics.ppt
j-chap1-Basics.ppt
SmitaBorkar9
 
JAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARIJAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARI
SivaSankari36
 
Java2020 programming basics and fundamentals
Java2020 programming basics and fundamentalsJava2020 programming basics and fundamentals
Java2020 programming basics and fundamentals
swecsaleem
 
Unit1 JAVA.pptx
Unit1 JAVA.pptxUnit1 JAVA.pptx
Unit1 JAVA.pptx
RahulAnand111531
 
Object Oriented Programming Part 1 of Unit 1
Object Oriented Programming Part 1 of Unit 1Object Oriented Programming Part 1 of Unit 1
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
OOP - Lecture02 - Introduction to Java.pptx
OOP - Lecture02 - Introduction to Java.pptxOOP - Lecture02 - Introduction to Java.pptx
OOP - Lecture02 - Introduction to Java.pptx
umairmushtaq48
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basics
Raffaella D'angelo
 
1_Introduction to Java.pptx java programming
1_Introduction to Java.pptx java programming1_Introduction to Java.pptx java programming
1_Introduction to Java.pptx java programming
amitraj53904
 
01. Introduction to programming with java
01. Introduction to programming with java01. Introduction to programming with java
01. Introduction to programming with java
Intro C# Book
 
JAVA.ppsx java code java edv java development
JAVA.ppsx java code java edv java developmentJAVA.ppsx java code java edv java development
JAVA.ppsx java code java edv java development
wannabekrishna0
 
Pi j1.1 what-is-java
Pi j1.1 what-is-javaPi j1.1 what-is-java
Pi j1.1 what-is-java
mcollison
 
Java interview question
Java interview questionJava interview question
Java interview question
simplidigital
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
Om Ganesh
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
Pratima Parida
 
j-chap1-Basics.ppt
j-chap1-Basics.pptj-chap1-Basics.ppt
j-chap1-Basics.ppt
SmitaBorkar9
 
JAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARIJAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARI
SivaSankari36
 
Java2020 programming basics and fundamentals
Java2020 programming basics and fundamentalsJava2020 programming basics and fundamentals
Java2020 programming basics and fundamentals
swecsaleem
 
Object Oriented Programming Part 1 of Unit 1
Object Oriented Programming Part 1 of Unit 1Object Oriented Programming Part 1 of Unit 1
Object Oriented Programming Part 1 of Unit 1
VigneshkumarPonnusam1
 
OOP - Lecture02 - Introduction to Java.pptx
OOP - Lecture02 - Introduction to Java.pptxOOP - Lecture02 - Introduction to Java.pptx
OOP - Lecture02 - Introduction to Java.pptx
umairmushtaq48
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basics
Raffaella D'angelo
 
Ad

More from Kongu Engineering College, Perundurai, Erode (20)

Introduction to Generative AI refers to a subset of artificial intelligence
Introduction to Generative AI refers to a subset of artificial intelligenceIntroduction to Generative AI refers to a subset of artificial intelligence
Introduction to Generative AI refers to a subset of artificial intelligence
Kongu Engineering College, Perundurai, Erode
 
Introduction to Microsoft Power BI is a business analytics service
Introduction to Microsoft Power BI is a business analytics serviceIntroduction to Microsoft Power BI is a business analytics service
Introduction to Microsoft Power BI is a business analytics service
Kongu Engineering College, Perundurai, Erode
 
Connect to NoSQL Database (MongoDB) using Node JS & Connect Node.js with NoSQ...
Connect to NoSQL Database (MongoDB) using Node JS & Connect Node.js with NoSQ...Connect to NoSQL Database (MongoDB) using Node JS & Connect Node.js with NoSQ...
Connect to NoSQL Database (MongoDB) using Node JS & Connect Node.js with NoSQ...
Kongu Engineering College, Perundurai, Erode
 
concept of server-side JavaScript / JS Framework: NODEJS
concept of server-side JavaScript / JS Framework: NODEJSconcept of server-side JavaScript / JS Framework: NODEJS
concept of server-side JavaScript / JS Framework: NODEJS
Kongu Engineering College, Perundurai, Erode
 
Node.js web-based Example :Run a local server in order to start using node.js...
Node.js web-based Example :Run a local server in order to start using node.js...Node.js web-based Example :Run a local server in order to start using node.js...
Node.js web-based Example :Run a local server in order to start using node.js...
Kongu Engineering College, Perundurai, Erode
 
Concepts of Satellite Communication and types and its applications
Concepts of Satellite Communication  and types and its applicationsConcepts of Satellite Communication  and types and its applications
Concepts of Satellite Communication and types and its applications
Kongu Engineering College, Perundurai, Erode
 
Concepts of Mobile Communication Wireless LANs, Bluetooth , HiperLAN
Concepts of Mobile Communication Wireless LANs, Bluetooth , HiperLANConcepts of Mobile Communication Wireless LANs, Bluetooth , HiperLAN
Concepts of Mobile Communication Wireless LANs, Bluetooth , HiperLAN
Kongu Engineering College, Perundurai, Erode
 
Web Technology Introduction framework.pptx
Web Technology Introduction framework.pptxWeb Technology Introduction framework.pptx
Web Technology Introduction framework.pptx
Kongu Engineering College, Perundurai, Erode
 
Computer Network - Unicast Routing Distance vector Link state vector
Computer Network - Unicast Routing Distance vector Link state vectorComputer Network - Unicast Routing Distance vector Link state vector
Computer Network - Unicast Routing Distance vector Link state vector
Kongu Engineering College, Perundurai, Erode
 
Android SQLite database oriented application development
Android SQLite database oriented application developmentAndroid SQLite database oriented application development
Android SQLite database oriented application development
Kongu Engineering College, Perundurai, Erode
 
Android Application Development Programming
Android Application Development ProgrammingAndroid Application Development Programming
Android Application Development Programming
Kongu Engineering College, Perundurai, Erode
 
Introduction to Spring & Spring BootFramework
Introduction to Spring  & Spring BootFrameworkIntroduction to Spring  & Spring BootFramework
Introduction to Spring & Spring BootFramework
Kongu Engineering College, Perundurai, Erode
 
A REST API (also called a RESTful API or RESTful web API) is an application p...
A REST API (also called a RESTful API or RESTful web API) is an application p...A REST API (also called a RESTful API or RESTful web API) is an application p...
A REST API (also called a RESTful API or RESTful web API) is an application p...
Kongu Engineering College, Perundurai, Erode
 
SOA and Monolith Architecture - Micro Services.pptx
SOA and Monolith Architecture - Micro Services.pptxSOA and Monolith Architecture - Micro Services.pptx
SOA and Monolith Architecture - Micro Services.pptx
Kongu Engineering College, Perundurai, Erode
 
Application Layer.pptx
Application Layer.pptxApplication Layer.pptx
Application Layer.pptx
Kongu Engineering College, Perundurai, Erode
 
Connect to NoSQL Database using Node JS.pptx
Connect to NoSQL Database using Node JS.pptxConnect to NoSQL Database using Node JS.pptx
Connect to NoSQL Database using Node JS.pptx
Kongu Engineering College, Perundurai, Erode
 
Node_basics.pptx
Node_basics.pptxNode_basics.pptx
Node_basics.pptx
Kongu Engineering College, Perundurai, Erode
 
Navigation Bar.pptx
Navigation Bar.pptxNavigation Bar.pptx
Navigation Bar.pptx
Kongu Engineering College, Perundurai, Erode
 
Bootstarp installation.pptx
Bootstarp installation.pptxBootstarp installation.pptx
Bootstarp installation.pptx
Kongu Engineering College, Perundurai, Erode
 
nested_Object as Parameter & Recursion_Later_commamd.pptx
nested_Object as Parameter  & Recursion_Later_commamd.pptxnested_Object as Parameter  & Recursion_Later_commamd.pptx
nested_Object as Parameter & Recursion_Later_commamd.pptx
Kongu Engineering College, Perundurai, Erode
 
Ad

Recently uploaded (20)

New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
IntroSlides-June-GDG-Cloud-Munich community [email protected]
IntroSlides-June-GDG-Cloud-Munich community gathering@Netlight.pdfIntroSlides-June-GDG-Cloud-Munich community gathering@Netlight.pdf
IntroSlides-June-GDG-Cloud-Munich community [email protected]
Luiz Carneiro
 
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
 
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank
Guru Nanak Technical Institutions
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODSWIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)
kjim477n
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbbTree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant ConversionStructural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)
pelumiadigun2006
 
Airport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptxAirport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptx
BibekMedhi2
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docxFlow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
ijfcstjournal
 
SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptxWeek 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
dayananda54
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdfRearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible PavementsPavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
 
New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODSWIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)
kjim477n
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbbTree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant ConversionStructural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)
pelumiadigun2006
 
Airport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptxAirport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptx
BibekMedhi2
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docxFlow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
ijfcstjournal
 
SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptxWeek 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
dayananda54
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdfRearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible PavementsPavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
 

Java Programming : introduction

  • 1. 1 JAVA PROGRAMMING By Dr.T.Abirami Associate Professor Department of IT Kongu Engineering College Perundurai 2/3/2021
  • 3. Author ,Year and Company  Started in 1995 by SUN Microsystems  James gosling, Arthur Van hoff, Andy bechtolsheim 3 James Gosling Oak is a symbol of strength 2/3/2021
  • 4. Java Indroduction  It is programming language  It is class based and object oriented programming language  It is a platform independent language  Java is both compiler and interpreter language  Java follows a bottom-up approach 4 2/3/2021
  • 5. Real-World Java Applications  Desktop GUI Applications  Android Apps  Web Applications  Software Tools  Trading Application  J2ME Apps  Embedded Space  Big Data technologies  Scientific Applications 5 2/3/2021
  • 6. Example  Banking: To deal with transaction management.  Retail: Billing applications that you see in a store/restaurant are completely written in Java.  Information Technology: Java is designed to solve implementation dependencies.  Android: Applications are either written in Java or use Java API.  Financial services: It is used in server-side applications.  Stock market: To write algorithms as to which company they should invest in.  Big Data: Hadoop MapReduce framework is written using Java.  Scientific and Research Community: To deal with huge amount of data. 6 2/3/2021
  • 7. Application  Desktop Applications such as acrobat reader, media player, antivirus, etc.  Web Applications  Enterprise Applications such as banking applications.  Mobile  Embedded System  Smart Card  Robotics  Games, etc. 7 2/3/2021
  • 8. Where it is used?  1. Google's (Gmail & Youtube) is built on Java/some other lang. 2. Twitter (Netty) & Linkedin uses Java & Scala. 3. Amazon, Ebay, Blogger uses almost Java. 8 2/3/2021
  • 9. Types of Java Applications  1) Standalone Application  2) Web Application  3) Enterprise Application  4) Mobile Application 9 2/3/2021
  • 10. Java Editions  1) Java SE (Java Standard Edition) - It is a Java programming platform.  2) Java EE (Java Enterprise Edition) - It is an enterprise platform which is mainly used to develop web and enterprise applications.  3) Java ME (Java Micro Edition) - to develop mobile applications.  4) JavaFX-to develop rich internet applications. 10 2/3/2021
  • 11. Popular companies  Uber  Airbnb  Google  Pinterest  Netflix  Spotify  Amazon  Slack  Instagram, etc. 11 2/3/2021
  • 12. Java Version History  JDK Alpha and Beta (1995)  JDK 1.0 (23rd Jan 1996)  JDK 1.1 (19th Feb 1997)  J2SE 1.2 (8th Dec 1998)  J2SE 1.3 (8th May 2000)  J2SE 1.4 (6th Feb 2002)  J2SE 5.0 (30th Sep 2004)  Java SE 6 (11th Dec 2006)  Java SE 7 (28th July 2011)  Java SE 8 (18th Mar 2014)  Java SE 9 (21st Sep 2017)  Java SE 10 (20th Mar 2018)  Java SE 11 and 14 ,15 12 2/3/2021
  • 13. A Step By Step Guide To How To Setup Eclipse IDE On Windows?  Install Java  Setup Eclipse IDE on Windows  Hello World Program 13 2/3/2021
  • 14. How to Download and Install Eclipse to Run Java  Step 1: Go to the Java Downloads Page and click on the option of Download. https://www.oracle.com/in/java/technologies/jav ase-downloads.html  2. Setup path 14 2/3/2021
  • 15. Set the path for Java(JDK)  Step 2: Once the installation is over follow the below instructions to set the path of the file.  Go to start and search for ‘System’. Then, click on ‘System’ and go to Advanced System Settings. Refer below. 15 2/3/2021
  • 16. Now, click on ‘Environment Variables’ under ‘Advanced’ tab as shown below: 16 2/3/2021
  • 18. JDK, JRE, and JVM JVM  JVM (Java Virtual Machine) is an abstract machine.  It is called a virtual machine because it doesn't physically exist.  It is a specification that provides a runtime environment in which Java bytecode can be executed.  It can also run those programs which are written in other languages and compiled to Java bytecode. 18 2/3/2021
  • 19. The JVM performs the following main tasks:  Loads code  Verifies code  Executes code  Provides runtime environment 19 Execution Engine :It contains: • A virtual processor • Interpreter: Read bytecode stream then execute the instructions. • Just-In-Time(JIT) compiler: •It is used to improve the performance. •JIT compiles parts of the byte code that have similar functionality at the same time, and hence reduces the amount of time needed for compilation. • Here, the term "compiler" refers to a translator from the instruction set of a Java virtual machine (JVM) to the instruction set of a specific CPU. 2/3/2021
  • 20. JRE  JRE is an acronym for Java Runtime Environment.  It is also written as Java RTE.  It is a set of software tools which are used for developing Java applications.  It is used to provide the runtime environment.  It is the implementation of JVM.  It physically exists.  It contains a set of libraries + other files that JVM uses at runtime. 20 2/3/2021
  • 21. JDK(Java Development Kit)  It is a software development environment which is used to develop Java applications and applets.  It physically exists.  It contains JRE + development tools.  The JDK contains a private Java Virtual Machine (JVM) and a few other resources such as an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), etc. to complete the development of a Java Application. 21 2/3/2021
  • 22. Learning Objectives  To learn why Java is useful for the design of desktop , web and mobile applications.  To learn how to implement object-oriented designs with Java.  To identify Java language components and how they work together in applications.  To design and program stand-alone Java applications.  To learn how to design a graphical user interface (GUI) with Java AWT.  To learn how to extend Java classes with inheritance and dynamic binding.  To learn how to use exception handling in Java applications.  To learn Java generics and how to use the Java Collections API.  To understand how to design applications with threads in Java.  To learn how to read and write files in Java. 22 2/3/2021
  • 26. 26 First Program public class HelloWorld { public static void main(String args[]) { System.out.println("Hello World"); } } 2/3/2021
  • 27. 27 Compiling and Running HelloWorld.java javac HelloWorld.java java HelloWorld HelloWorld.class compile run bytecode source code 2/3/2021
  • 28. Why is JAVA a platform independent language? 28 platform is the computer and the operating system running on it. The operating system can be Windows, Mac, Linux, or any of many others It provides the environment to run the program 2/3/2021
  • 29. Compiled Programs With Different Operating Systems Windows compiler Executable (Windows) UNIX compiler Executable (UNIX) Mac OS compiler Executable (Mac) Computer program 29 2/3/2021
  • 30. A High Level View Of Translating/Executing Java Programs Java compiler (javac) Java program Filename.java Java bytecode (generic binary) Filename.class Stage 1: Compilation 30 2/3/2021
  • 31. A High Level View Of Translating/Executing Java Programs (2) Java interpreter (java) Java bytecode (generic binary) Filename.class Machine language instruction (UNIX) Machine language instruction (Windows) Machine language instruction (Apple) Stage 2: Interpreting and executing the byte code 31 2/3/2021
  • 32. Creating, Compiling And Running Java Programs On The Computer Science Network javac Java compiler Java byte code filename.class (UNIX file) To compile the program at the command line type "javac filename.java" To run the interpreter, at the command line type "java filename" java Java Interpreter Type it in with the text editor of your choice filename.java (Unix file) Java program 32 2/3/2021
  • 33. Compiling The Smallest Java Program public class Smallest { public static void main (String[] args) { } } Smallest.java javac (Java byte code) 10000100000001000 00100100000001001 : : Smallest.class Type “javac Smallest.java” 33 2/3/2021
  • 34. Running The Smallest Java Program (Java byte code) 10000100000001000 00100100000001001 : : Smallest.class java Type “java Smallest” (Platform/Operating specific binary 10100111000001000 00100111001111001 : : 34 2/3/2021
  • 35. 35 Notice:  Java is CASE SENSITIVE!!  File name has to be the same as class name in file.  Need to import necessary class definitions 2/3/2021