SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Introduction to Java
Session 1
Introduction to Java / 2 of 28
Objectives
 Discuss Java in brief
 Explore the types of Java programs
 Discuss what we can do with Java?
 Examine the differences between Applets and
Applications
 Describe the Java Virtual Machine (JVM)
 Explore the features of some IDE’s
 Discuss the JDK and tools under it
 Discuss future trends and technologies
 Discuss the brief history of Java
Introduction to Java / 3 of 28
Introduction to Java
 Java being secure, portable and platform
independent was found to be capable of
addressing large scale problems across the
Internet
 Introduced in 1995 by Sun Microsystems
 Objective was to develop a software for
embedding in consumer electronic devices
 Initially called ‘Oak’
 Internet users had problems of portability and
platform independence
Introduction to Java / 4 of 28
What is Java?
 A cross platform language
 It is used for stand-alone applications, net
based programs and to program consumer
devices
 For e.g.: cellular phones, palm pilots
 An object-oriented programming language
Introduction to Java / 5 of 28
Java and the internet
 Applets can respond to user input and actions
 Programs on the Net are either static or dynamic
 Applets help develop dynamic programs
 Applets run on Java enabled web browser
Introduction to Java / 6 of 28
Security issues (1)
 This can be a potential risk for the user’s
system
 An Applet has to be downloaded on the user’s
system before it can work
 Hence, applets are restricted from accessing all
areas of the disk
Introduction to Java / 7 of 28
Security issues (2)
 JVM generates byte codes as a result of
compilation
 Byte codes cannot be executed without the JVM
 This control is exercised by the
Introduction to Java / 8 of 28
Types of Java programs (1)
 Applets
 Programs created specially to work with the
Internet
Displays an image GUI to accept user input
Introduction to Java / 9 of 28
Types of Java programs (2)
 Command line applications
 Java programs that run from a command prompt
and do not display any GUI screen
Introduction to Java / 10 of 28
Types of Java programs (3)
 GUI Applications
 Java programs that run stand-alone and accept
user input through a GUI based screen
Introduction to Java / 11 of 28
Types of Java programs (4)
 Client sends request which is processed by the
server
 The server side APIs extend capabilities of
standard APIs and are known as Servlets
 Also called server side applets
 For e.g. – HTML form processing, process
databases and perform server side transactions
 Servlets
 Suitable for web based n-tier application development
Introduction to Java / 12 of 28
Types of Java programs (5)
 A programmer can create his/her own packages
or use the built-in packages

java.awt, java.io and java.applet are some examples
 Database applications
 Uses JDBC API for database connectivity
 Programs can be either applets or application
 Packages
 Class libraries in Java
Introduction to Java / 13 of 28
What can we do with Java?
 Colorful scrolling banner for web pages
 Interactive quiz
 A program that plays audio, displays a banner and
animates images at the same time
 Interactive games that can run as stand alone or
deployed on the web
 One can develop:
 Create a wide variety of applications from a
simple computation program to complex
distributed application
Introduction to Java / 14 of 28
Difference between
Applets and Applications (1)
 Do not need a browser
to execute
 These run within JVM
 Executed in a java
compatible web
browser
 Applets load and run on
a Java-enabled web
browser
Applications Applets
Introduction to Java / 15 of 28
Difference between
Applets and Applications (2)
 Manages its own flow of
execution
 No restrictions about
reading or writing
from/to the local file
system
 Flow of execution is
partly managed by the
browser context
 Cannot read/write
from/to the local file
system
Applications Applets
Introduction to Java / 16 of 28
Similarities in
Applets and Applications (1)
 Both can use the Abstract Windowing Toolkit
(AWT)
 Both need to use the standard Java class
libraries
Introduction to Java / 17 of 28
Java Virtual Machine (JVM)
 Java code can run on any platform by using JVM
 JVM normally reads and executes Java
statements one at a time
 JVM is responsible for platform independence and
small size compiled code
 Recognizes only a particular binary format called
a class file
 Has an interpreter component that enables communication between Java
byte code and a computer’s operating system
Introduction to Java / 18 of 28
Visual development tools
 Simplifies the software development process
 Includes class browser for viewing and
navigating through the class hierarchy
 Includes a source code editor that helps code
programs
 Helps in quick and efficient development of
Java applications and applets
Introduction to Java / 19 of 28
Some visual development tools
 Borland Jbuilder from Borland/Inprise
 Includes an integrated editor, debugger, compiler, visual
designer, wizards and sample applications
 Forte for Java, Community Edition from Sun
Microsystems
 Integrated visual design, editing, compilation and debugging
capabilities to create applets and applications
 Visual Age for Java from IBM
 Works with existing databases, applications and transactions
Introduction to Java / 20 of 28
Java Development Kit (JDK)
 Basically a set of command line tools
 Three major releases are :
 Java 1.0 – first release
 Java 1.1 – 1997 release
 Java 2 – latest release
 Freely available at Sun’s official website
 Contains the software and tools needed to
compile, debug and execute applets and
applications
Introduction to Java / 21 of 28
Tools under JDK (1)
 Syntax : javac [option] source
 Source files end with extension .java
 Options can include –

-classpath

-d

-g

-o

-verbose
 javac : compiler used to compile Java source
code
Introduction to Java / 22 of 28
Tools under JDK (2)
 java [option] classname [arguments]
 Options can include

-classpath

-Dname name

-help

-v or –verbose

-X
 java : interpreter used to execute Java byte
codes
Introduction to Java / 23 of 28
Tools under JDK (3)
 javadoc : This is the Java documentation tool
 Generates detailed documentation in HTML form
for any .java source code or package
 appletviewer : Used to view and test applets
 Syntax : appletviewer [options] url
Introduction to Java / 24 of 28
New features in Java2 (1)
 Drag and Drop – interactively transferring
information across different applications and
from one part of a program’s interface to
another
 Swing – new set of classes and interfaces
used to create an advanced GUI
Introduction to Java / 25 of 28
New features in Java2 (2)
 Java Sound – totally new set of features
pertaining to Java’s audio features
 RMI – Remote Method Invocation allows
applications to call objects located at remote
sites and communicate with them
 Java 2D API – set of classes for advanced 2D
graphics and imaging
Introduction to Java / 26 of 28
Present Java technologies (1)
 Support for distributed computing in the form
of features such as RMI
 Database management support in the form of
JDBC
 Reusable software components in the form of
JavaBeans
 Creation and deployment of applications that
can run on any operating system
Introduction to Java / 27 of 28
Present Java technologies (2)
 Java 2 Enterprise Edition (J2EE) which
includes :
Introduction to Java / 28 of 28
Future trends
 Miniature devices such as Palm pilots and
mobile phones are equipped with a features
such as email, gaming options and many
others
 They are based upon Java 2 Micro Edition
(J2ME)
 New products in the area of embedded
technologies for consumer devices by making
use of mobile computing

Weitere ähnliche Inhalte

Was ist angesagt?

Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1Qualys
 
Programming tools for developers
Programming tools for developersProgramming tools for developers
Programming tools for developersBBVA API Market
 
Android summer training report
Android summer training reportAndroid summer training report
Android summer training reportShashendra Singh
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Languagejaimefrozr
 
C,c++,java,php,.net training institute in delhi, best training institute for ...
C,c++,java,php,.net training institute in delhi, best training institute for ...C,c++,java,php,.net training institute in delhi, best training institute for ...
C,c++,java,php,.net training institute in delhi, best training institute for ...MCM COmpetitive Classes
 
Debugging with NetBeans IDE
Debugging with NetBeans IDEDebugging with NetBeans IDE
Debugging with NetBeans IDEAndreas Ruppen
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaShravan Sanidhya
 
JAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARIJAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARISivaSankari36
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core javaWE-IT TUTORIALS
 
Complete Solution for JavaFX Development - NexSoftSys
Complete Solution for JavaFX Development - NexSoftSysComplete Solution for JavaFX Development - NexSoftSys
Complete Solution for JavaFX Development - NexSoftSysNexSoftsys
 
Javame sdk-datasheet-167819
Javame sdk-datasheet-167819Javame sdk-datasheet-167819
Javame sdk-datasheet-167819Oscar Eduardo
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basicsRaffaella D'angelo
 

Was ist angesagt? (16)

Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 
Programming tools for developers
Programming tools for developersProgramming tools for developers
Programming tools for developers
 
Java Programming Basics
Java Programming BasicsJava Programming Basics
Java Programming Basics
 
Android summer training report
Android summer training reportAndroid summer training report
Android summer training report
 
Mobile Java
Mobile JavaMobile Java
Mobile Java
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
 
C,c++,java,php,.net training institute in delhi, best training institute for ...
C,c++,java,php,.net training institute in delhi, best training institute for ...C,c++,java,php,.net training institute in delhi, best training institute for ...
C,c++,java,php,.net training institute in delhi, best training institute for ...
 
Curso de Programación Java Intermedio
Curso de Programación Java IntermedioCurso de Programación Java Intermedio
Curso de Programación Java Intermedio
 
Debugging with NetBeans IDE
Debugging with NetBeans IDEDebugging with NetBeans IDE
Debugging with NetBeans IDE
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
JAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARIJAVA BOOK BY SIVASANKARI
JAVA BOOK BY SIVASANKARI
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
 
Curso de Programación Java Básico
Curso de Programación Java BásicoCurso de Programación Java Básico
Curso de Programación Java Básico
 
Complete Solution for JavaFX Development - NexSoftSys
Complete Solution for JavaFX Development - NexSoftSysComplete Solution for JavaFX Development - NexSoftSys
Complete Solution for JavaFX Development - NexSoftSys
 
Javame sdk-datasheet-167819
Javame sdk-datasheet-167819Javame sdk-datasheet-167819
Javame sdk-datasheet-167819
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basics
 

Andere mochten auch

INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...
INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...
INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...SOURAV DAS
 
Poll! Prelims Slides
Poll! Prelims SlidesPoll! Prelims Slides
Poll! Prelims SlidesGabrielChu
 
Tumores de páncreas
Tumores de páncreasTumores de páncreas
Tumores de páncreasEdd Vargas
 
GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...
GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...
GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...SOURAV DAS
 
Problem statement final
Problem statement finalProblem statement final
Problem statement finalmorgannross01
 
JOB RELATED COMPETITIVE EXAMINATION CLASSES
JOB RELATED COMPETITIVE  EXAMINATION  CLASSESJOB RELATED COMPETITIVE  EXAMINATION  CLASSES
JOB RELATED COMPETITIVE EXAMINATION CLASSESSOURAV DAS
 
IIT JAM EXAMINATION PREPARATION
IIT JAM EXAMINATION PREPARATION IIT JAM EXAMINATION PREPARATION
IIT JAM EXAMINATION PREPARATION SOURAV DAS
 
龔建嘉2014 ted報名
龔建嘉2014 ted報名龔建嘉2014 ted報名
龔建嘉2014 ted報名建嘉 龔
 
SAS coding for analysis-Using SAIL company's (HR) data
SAS coding for analysis-Using SAIL company's (HR) dataSAS coding for analysis-Using SAIL company's (HR) data
SAS coding for analysis-Using SAIL company's (HR) dataDhanusuya Raman
 
Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004Pratik Nawani
 

Andere mochten auch (20)

Client review unit nexus
Client review unit nexusClient review unit nexus
Client review unit nexus
 
Empathy map
Empathy mapEmpathy map
Empathy map
 
Blood
BloodBlood
Blood
 
Empathize and define
Empathize and defineEmpathize and define
Empathize and define
 
INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...
INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...
INTERVIEW TIPS HOW TO TACKLE SOFT SKILLS INTELLIGENT AND SMART ANSWERS BY SOU...
 
Poll! Prelims Slides
Poll! Prelims SlidesPoll! Prelims Slides
Poll! Prelims Slides
 
Diapositivas
DiapositivasDiapositivas
Diapositivas
 
Tumores de páncreas
Tumores de páncreasTumores de páncreas
Tumores de páncreas
 
Ideate
IdeateIdeate
Ideate
 
cwu orientation
cwu orientation cwu orientation
cwu orientation
 
GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...
GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...
GAME THEORY NOTES FOR ECONOMICS HONOURS FOR ALL UNIVERSITIES BY SOURAV SIR'S ...
 
Problem statement final
Problem statement finalProblem statement final
Problem statement final
 
JOB RELATED COMPETITIVE EXAMINATION CLASSES
JOB RELATED COMPETITIVE  EXAMINATION  CLASSESJOB RELATED COMPETITIVE  EXAMINATION  CLASSES
JOB RELATED COMPETITIVE EXAMINATION CLASSES
 
IIT JAM EXAMINATION PREPARATION
IIT JAM EXAMINATION PREPARATION IIT JAM EXAMINATION PREPARATION
IIT JAM EXAMINATION PREPARATION
 
Empathize and define
Empathize and defineEmpathize and define
Empathize and define
 
龔建嘉2014 ted報名
龔建嘉2014 ted報名龔建嘉2014 ted報名
龔建嘉2014 ted報名
 
SAS coding for analysis-Using SAIL company's (HR) data
SAS coding for analysis-Using SAIL company's (HR) dataSAS coding for analysis-Using SAIL company's (HR) data
SAS coding for analysis-Using SAIL company's (HR) data
 
How to add babblr
How to add babblrHow to add babblr
How to add babblr
 
Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004Pratik_Nawani_Executive Summary_J025_71112110004
Pratik_Nawani_Executive Summary_J025_71112110004
 
Pentasa®
Pentasa®Pentasa®
Pentasa®
 

Ähnlich wie introduction to java-final with Unit Nexus

java basic ppt introduction, The Java language is known for its robustness, s...
java basic ppt introduction, The Java language is known for its robustness, s...java basic ppt introduction, The Java language is known for its robustness, s...
java basic ppt introduction, The Java language is known for its robustness, s...Indu32
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technologysshhzap
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaHarry Potter
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingJames Wong
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingLuis Goldster
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaTony Nguyen
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingYoung Alista
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingFraboni Ec
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxDrPreethiD1
 
Mobile Application Development MAD J2ME
Mobile Application Development  MAD J2MEMobile Application Development  MAD J2ME
Mobile Application Development MAD J2MEPallepati Vasavi
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxSuganthiDPSGRKCW
 

Ähnlich wie introduction to java-final with Unit Nexus (20)

java basic ppt introduction, The Java language is known for its robustness, s...
java basic ppt introduction, The Java language is known for its robustness, s...java basic ppt introduction, The Java language is known for its robustness, s...
java basic ppt introduction, The Java language is known for its robustness, s...
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Java Programming : introduction
Java Programming : introductionJava Programming : introduction
Java Programming : introduction
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Java course in Chandigarh.pdf
Java course in Chandigarh.pdfJava course in Chandigarh.pdf
Java course in Chandigarh.pdf
 
Java introduction
Java introductionJava introduction
Java introduction
 
Java-Unit-I.ppt
Java-Unit-I.pptJava-Unit-I.ppt
Java-Unit-I.ppt
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
Mobile Application Development MAD J2ME
Mobile Application Development  MAD J2MEMobile Application Development  MAD J2ME
Mobile Application Development MAD J2ME
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
 
Core Java-1 (1).pdf
Core Java-1 (1).pdfCore Java-1 (1).pdf
Core Java-1 (1).pdf
 

Mehr von Unit Nexus Pvt. Ltd.

Mehr von Unit Nexus Pvt. Ltd. (7)

Session4 applets
Session4   appletsSession4   applets
Session4 applets
 
AWT information
AWT informationAWT information
AWT information
 
Learn Java language fundamentals with Unit nexus
Learn Java language fundamentals with Unit nexusLearn Java language fundamentals with Unit nexus
Learn Java language fundamentals with Unit nexus
 
Unit Nexus offering Java ring training
Unit Nexus offering Java ring trainingUnit Nexus offering Java ring training
Unit Nexus offering Java ring training
 
Core Java tutorial at Unit Nexus
Core Java tutorial at Unit NexusCore Java tutorial at Unit Nexus
Core Java tutorial at Unit Nexus
 
Unit nexus school presentation
Unit nexus school presentationUnit nexus school presentation
Unit nexus school presentation
 
Unit Nexus Pvt- Ltd-Company profile unipl
Unit Nexus Pvt- Ltd-Company profile uniplUnit Nexus Pvt- Ltd-Company profile unipl
Unit Nexus Pvt- Ltd-Company profile unipl
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 

Kürzlich hochgeladen (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

introduction to java-final with Unit Nexus

  • 2. Introduction to Java / 2 of 28 Objectives  Discuss Java in brief  Explore the types of Java programs  Discuss what we can do with Java?  Examine the differences between Applets and Applications  Describe the Java Virtual Machine (JVM)  Explore the features of some IDE’s  Discuss the JDK and tools under it  Discuss future trends and technologies  Discuss the brief history of Java
  • 3. Introduction to Java / 3 of 28 Introduction to Java  Java being secure, portable and platform independent was found to be capable of addressing large scale problems across the Internet  Introduced in 1995 by Sun Microsystems  Objective was to develop a software for embedding in consumer electronic devices  Initially called ‘Oak’  Internet users had problems of portability and platform independence
  • 4. Introduction to Java / 4 of 28 What is Java?  A cross platform language  It is used for stand-alone applications, net based programs and to program consumer devices  For e.g.: cellular phones, palm pilots  An object-oriented programming language
  • 5. Introduction to Java / 5 of 28 Java and the internet  Applets can respond to user input and actions  Programs on the Net are either static or dynamic  Applets help develop dynamic programs  Applets run on Java enabled web browser
  • 6. Introduction to Java / 6 of 28 Security issues (1)  This can be a potential risk for the user’s system  An Applet has to be downloaded on the user’s system before it can work  Hence, applets are restricted from accessing all areas of the disk
  • 7. Introduction to Java / 7 of 28 Security issues (2)  JVM generates byte codes as a result of compilation  Byte codes cannot be executed without the JVM  This control is exercised by the
  • 8. Introduction to Java / 8 of 28 Types of Java programs (1)  Applets  Programs created specially to work with the Internet Displays an image GUI to accept user input
  • 9. Introduction to Java / 9 of 28 Types of Java programs (2)  Command line applications  Java programs that run from a command prompt and do not display any GUI screen
  • 10. Introduction to Java / 10 of 28 Types of Java programs (3)  GUI Applications  Java programs that run stand-alone and accept user input through a GUI based screen
  • 11. Introduction to Java / 11 of 28 Types of Java programs (4)  Client sends request which is processed by the server  The server side APIs extend capabilities of standard APIs and are known as Servlets  Also called server side applets  For e.g. – HTML form processing, process databases and perform server side transactions  Servlets  Suitable for web based n-tier application development
  • 12. Introduction to Java / 12 of 28 Types of Java programs (5)  A programmer can create his/her own packages or use the built-in packages  java.awt, java.io and java.applet are some examples  Database applications  Uses JDBC API for database connectivity  Programs can be either applets or application  Packages  Class libraries in Java
  • 13. Introduction to Java / 13 of 28 What can we do with Java?  Colorful scrolling banner for web pages  Interactive quiz  A program that plays audio, displays a banner and animates images at the same time  Interactive games that can run as stand alone or deployed on the web  One can develop:  Create a wide variety of applications from a simple computation program to complex distributed application
  • 14. Introduction to Java / 14 of 28 Difference between Applets and Applications (1)  Do not need a browser to execute  These run within JVM  Executed in a java compatible web browser  Applets load and run on a Java-enabled web browser Applications Applets
  • 15. Introduction to Java / 15 of 28 Difference between Applets and Applications (2)  Manages its own flow of execution  No restrictions about reading or writing from/to the local file system  Flow of execution is partly managed by the browser context  Cannot read/write from/to the local file system Applications Applets
  • 16. Introduction to Java / 16 of 28 Similarities in Applets and Applications (1)  Both can use the Abstract Windowing Toolkit (AWT)  Both need to use the standard Java class libraries
  • 17. Introduction to Java / 17 of 28 Java Virtual Machine (JVM)  Java code can run on any platform by using JVM  JVM normally reads and executes Java statements one at a time  JVM is responsible for platform independence and small size compiled code  Recognizes only a particular binary format called a class file  Has an interpreter component that enables communication between Java byte code and a computer’s operating system
  • 18. Introduction to Java / 18 of 28 Visual development tools  Simplifies the software development process  Includes class browser for viewing and navigating through the class hierarchy  Includes a source code editor that helps code programs  Helps in quick and efficient development of Java applications and applets
  • 19. Introduction to Java / 19 of 28 Some visual development tools  Borland Jbuilder from Borland/Inprise  Includes an integrated editor, debugger, compiler, visual designer, wizards and sample applications  Forte for Java, Community Edition from Sun Microsystems  Integrated visual design, editing, compilation and debugging capabilities to create applets and applications  Visual Age for Java from IBM  Works with existing databases, applications and transactions
  • 20. Introduction to Java / 20 of 28 Java Development Kit (JDK)  Basically a set of command line tools  Three major releases are :  Java 1.0 – first release  Java 1.1 – 1997 release  Java 2 – latest release  Freely available at Sun’s official website  Contains the software and tools needed to compile, debug and execute applets and applications
  • 21. Introduction to Java / 21 of 28 Tools under JDK (1)  Syntax : javac [option] source  Source files end with extension .java  Options can include –  -classpath  -d  -g  -o  -verbose  javac : compiler used to compile Java source code
  • 22. Introduction to Java / 22 of 28 Tools under JDK (2)  java [option] classname [arguments]  Options can include  -classpath  -Dname name  -help  -v or –verbose  -X  java : interpreter used to execute Java byte codes
  • 23. Introduction to Java / 23 of 28 Tools under JDK (3)  javadoc : This is the Java documentation tool  Generates detailed documentation in HTML form for any .java source code or package  appletviewer : Used to view and test applets  Syntax : appletviewer [options] url
  • 24. Introduction to Java / 24 of 28 New features in Java2 (1)  Drag and Drop – interactively transferring information across different applications and from one part of a program’s interface to another  Swing – new set of classes and interfaces used to create an advanced GUI
  • 25. Introduction to Java / 25 of 28 New features in Java2 (2)  Java Sound – totally new set of features pertaining to Java’s audio features  RMI – Remote Method Invocation allows applications to call objects located at remote sites and communicate with them  Java 2D API – set of classes for advanced 2D graphics and imaging
  • 26. Introduction to Java / 26 of 28 Present Java technologies (1)  Support for distributed computing in the form of features such as RMI  Database management support in the form of JDBC  Reusable software components in the form of JavaBeans  Creation and deployment of applications that can run on any operating system
  • 27. Introduction to Java / 27 of 28 Present Java technologies (2)  Java 2 Enterprise Edition (J2EE) which includes :
  • 28. Introduction to Java / 28 of 28 Future trends  Miniature devices such as Palm pilots and mobile phones are equipped with a features such as email, gaming options and many others  They are based upon Java 2 Micro Edition (J2ME)  New products in the area of embedded technologies for consumer devices by making use of mobile computing