SlideShare a Scribd company logo
1 of 28
Course Title: Programming with Java
What is Java?
• Java is a general-purpose computer programming
language that is concurrent, class-based, object-
oriented, and specifically designed to have as few
implementation dependencies as possible.
• It is intended to let application developers "write once,
run anywhere" (WORA), meaning that compiled Java
code can run on all platforms that support Java without
the need for recompilation.
• Java applications are typically compiled to bytecode
that can run on any Java virtual machine (JVM)
regardless of computer architecture.
Major features
• Designed by : James Gosling and Sun
Microsystems. The language was initially called
Oak after an oak tree .
• Developer : Oracle Corporation
• Stable release : Java Standard Edition 8 Update
60 (1.8.0_60) / August 18, 2015
• Implementation language: C and C++
• OS : Cross-platform (multi-platform)
• Filename extensions: .java , .class, .jar (Java
Archive)
WORA/ WORE
• "Write once, run anywhere" (WORA), or sometimes
write once, run everywhere (WORE)
• Ideally, this means Java can be developed on any
device, compiled into a standard bytecode and be
expected to run on any device equipped with a Java
virtual machine (JVM).
• The installation of a JVM or Java interpreter on chips,
devices or software packages has become an industry
standard practice.
• This means a programmer can develop code on a PC
and can expect it to run on Java enabled cell phones, as
well as on routers and mainframes equipped with Java,
without any adjustments.
What is Bytecode in Java ?
• Bytecode is nothing but the intermediate representation of
Java source code which is produced by the Java compiler by
compiling that source code.
• This byte code is an machine independent code.
• It is not completely a compiled code but it is an
intermediate code somewhere in the middle which is later
interpreted and executed by JVM.
• Bytecode is a machine code for JVM.
• But the machine code is platform specific whereas
bytecode is platform independent that is the main
difference between them.
• It is stored in .class file which is created after compiling the
source code.
What is Bytecode in Java ?
Java applet
• An applet is a special kind of Java program that is
designed to be transmitted over the internet and
automatically executed by a Java compatible web
browser.
• A Java applet is a small application which is
written in Java and delivered to users in the form
of bytecode.
• The user launches the Java applet from a web
page, and the applet is then executed within a
Java Virtual Machine (JVM) in a process separate
from the web browser itself.
Java applet
• A Java applet can appear in a frame of the web
page, a new application window, Sun's
AppletViewer, or a stand-alone tool for testing
applets. Java applets were introduced in the first
version of the Java language, which was released
in 1995.
• Java applets can be written in any programming
language that compiles to Java bytecode. They
are usually written in Java, but other languages
such as Jython,JRuby,Pascal,Scala, or Eiffel (via
SmartEiffel) may be used as well.
Principles
There were five primary goals in the creation of the
Java language:
• It must be "simple, object-oriented, and familiar".
• It must be "robust and secure".
• It must be "architecture-neutral and portable".
• It must execute with "high performance".
• It must be "interpreted, threaded, and dynamic".
Java Buzzwords
• Simple
• Secure
• Portable
• Object oriented
• Robust
• Multithreaded
• Architecture neutral
• Interpreted
• High performance
• Distributed
• Dynamic
Java Buzzwords
• Simple:
•Easy to learn
•Easy to write programs using Java
•More expressive.
•Most of the complex or confusing features in
C++ are removed in Java like pointers etc..
Java Buzzwords
• Secure:
•Java provides data security through
encapsulation.
•Also we can write applets in Java which provides
security.
•An applet is a small program which can be
downloaded from one computer to another
automatically.
•There is no need to worry about applets
accessing the system resources which may
compromise security.
Java Buzzwords
• Portable:
•Applications written using Java are portable
in the sense that they can be executed on any
kind of computer containing any CPU or any
operating system.
•When an application written in Java is
compiled, it generates an intermediate code
file called as “bytecode”.
•Bytecode helps Java to achieve portability.
Java Buzzwords
• Object - Oriented:
•Java follows object oriented model.
•So, it supports all the features of object
oriented model like:
Encapsulation
Inheritance
Polymorphism
Abstraction
Java Buzzwords
• Robust:
•A program or an application is said to be
robust(reliable) when it is able to give some
response in any kind of context.
•Some of those features are:
1. Type checking
2. Exception handling
Java Buzzwords
• Multithreaded:
•Java supports multithreading which is not
supported by C and C++.
•A thread is a light weight process.
•Multithreading increases CPU efficiency.
•A program can be divided into several threads
and each thread can be executed concurrently or
in parallel with the other threads.
•Real world example for multithreading is
computer. While we are listening to music, at
the same time we can write in a word document
or play a game.
Java Buzzwords
• Architecture - Neutral:
•Bytecode helps Java to achieve portability.
•Bytecode can be executed on computers
having any kind of operating system or any
kind of CPU.
•Since Java applications can run on any kind of
CPU, Java is architecture – neutral.
Java Buzzwords
• Interpreted and High Performance:
•In Java 1.0 version there is an interpreter for
executing the bytecode. As interpreter is quite
slow when compared to a compiler, java
programs used to execute slowly.
•After Java 1.0 version the interpreter was
replaced with JIT(Just-In-Time) compiler.
•This enhances the program performance
means it executes rapidly.
Java Buzzwords
• Distributed:
•Java supports distributed computation using
Remote Method Invocation (RMI) concept.
•The server and client(s) can communicate
with one another and the computations can
be divided among several computers which
makes the programs to execute rapidly.
•In distributed systems, resources are shared.
Java Buzzwords
• Dynamic:
•The Java Virtual Machine(JVM) maintains a
lot of runtime information about the program
and the objects in the program.
•Libraries are dynamically linked during
runtime.
•So, even if you make dynamic changes to
pieces of code, the program is not effected.
How Java achieved Platform
Independency ?
How Java achieved Platform
Independency ?
• Java achieved platform independency by
moving machine language generation from
compilation phase to execution phase by
introducing bytecodes and JVM.
How Java achieved Platform
Independency ?
How Java achieved Platform
Independency ?
What is the most important feature of
Java?
• Java is a platform independent language. This
is most important feature of Java language.
Platform independent language means
programs written in Java will work on any
computer that has Java installed on it,
regardless of operating system.
• Whereas Multithreading, AWT and Event
Handling, Networking, Database Connection
are important features of java.
Types of Java Software
• Java software is divided into two sub products
• 1) jdk (Java Development Kit)
• 2) jre (Java Run time Environment)
• jdk has both "Compiler + JVM"
• jre has only "JVM"
• JVM is a sub-part of jre and jre is a sub-part of jdk. So
in order to run any java application jre software is
sufficient but if we need to compile and execute the
java program we have to install jdk software.
Types of Java Software
This diagram shows the difference between jdk,jre and JVM.
Thanks for your patience.

More Related Content

What's hot (20)

Java presentation
Java presentationJava presentation
Java presentation
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Java history 01
Java history 01Java history 01
Java history 01
 
Java presentation
Java presentation Java presentation
Java presentation
 
Important features of java
Important features of javaImportant features of java
Important features of java
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Java Presentation
 Java Presentation Java Presentation
Java Presentation
 
Java introduction
Java introductionJava introduction
Java introduction
 
Lec 3 01_aug13
Lec 3 01_aug13Lec 3 01_aug13
Lec 3 01_aug13
 
Java features
Java featuresJava features
Java features
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
 
Basic javaprogramming(session1)
Basic javaprogramming(session1)Basic javaprogramming(session1)
Basic javaprogramming(session1)
 
Java 1
Java 1Java 1
Java 1
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
 
itft-Java evolution
itft-Java evolutionitft-Java evolution
itft-Java evolution
 
Java (1)
Java (1)Java (1)
Java (1)
 
Presentation5
Presentation5Presentation5
Presentation5
 
History of Java 1/2
History of Java 1/2History of Java 1/2
History of Java 1/2
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
 
Chapter 1 java
Chapter 1 java Chapter 1 java
Chapter 1 java
 

Viewers also liked

Viewers also liked (16)

ServiceFabric-Arch
ServiceFabric-ArchServiceFabric-Arch
ServiceFabric-Arch
 
Cardiology Personal Statement and Guide for Fellows in 2017
Cardiology Personal Statement and Guide for Fellows in 2017Cardiology Personal Statement and Guide for Fellows in 2017
Cardiology Personal Statement and Guide for Fellows in 2017
 
KSC GLOBAL SOLUTIONS
KSC GLOBAL SOLUTIONSKSC GLOBAL SOLUTIONS
KSC GLOBAL SOLUTIONS
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
 
WindowsAzureIAAS
WindowsAzureIAASWindowsAzureIAAS
WindowsAzureIAAS
 
Σημειώσεις wordpress
Σημειώσεις wordpressΣημειώσεις wordpress
Σημειώσεις wordpress
 
WindowsAzureSDK1.7
WindowsAzureSDK1.7WindowsAzureSDK1.7
WindowsAzureSDK1.7
 
Wcat
WcatWcat
Wcat
 
PowerShell-2
PowerShell-2PowerShell-2
PowerShell-2
 
#_ varible function
#_ varible function #_ varible function
#_ varible function
 
PowerShell-1
PowerShell-1PowerShell-1
PowerShell-1
 
airento
airentoairento
airento
 
AzureDocumentDB
AzureDocumentDBAzureDocumentDB
AzureDocumentDB
 
Windows Azure Marketplace
Windows Azure MarketplaceWindows Azure Marketplace
Windows Azure Marketplace
 
Plano de aula
Plano de aulaPlano de aula
Plano de aula
 
Plano de aula
Plano de aulaPlano de aula
Plano de aula
 

Similar to 1 java intro

Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwordsramesh517
 
Introduction To Java history, application, features.pptx
Introduction To Java history, application, features.pptxIntroduction To Java history, application, features.pptx
Introduction To Java history, application, features.pptxsonalipatil225940
 
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf10322210023
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptRajeshSukte1
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptCDSukte
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operatorkamal kotecha
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to JavaSoumya Suman
 
Java chapter 1 basic introduction Unit-1.pptx
Java chapter  1 basic introduction Unit-1.pptxJava chapter  1 basic introduction Unit-1.pptx
Java chapter 1 basic introduction Unit-1.pptxnoosdysharma
 
Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptxSumanBhandari40
 
Introduction to java
Introduction to java Introduction to java
Introduction to java Java Lover
 
Lecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 FastLecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 FastUzairSaeed18
 
JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxMurugesh33
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxMurugesh33
 

Similar to 1 java intro (20)

Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwords
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptxJAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
 
Java Ch 1.pptx
Java Ch 1.pptxJava Ch 1.pptx
Java Ch 1.pptx
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Introduction To Java history, application, features.pptx
Introduction To Java history, application, features.pptxIntroduction To Java history, application, features.pptx
Introduction To Java history, application, features.pptx
 
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
 
unit1.pptx
unit1.pptxunit1.pptx
unit1.pptx
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
 
Java chapter 1 basic introduction Unit-1.pptx
Java chapter  1 basic introduction Unit-1.pptxJava chapter  1 basic introduction Unit-1.pptx
Java chapter 1 basic introduction Unit-1.pptx
 
Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptx
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Lecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 FastLecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 Fast
 
JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptx
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Class_01.pptx
Class_01.pptxClass_01.pptx
Class_01.pptx
 

Recently uploaded

Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 

Recently uploaded (20)

Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 

1 java intro

  • 2. What is Java? • Java is a general-purpose computer programming language that is concurrent, class-based, object- oriented, and specifically designed to have as few implementation dependencies as possible. • It is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. • Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture.
  • 3. Major features • Designed by : James Gosling and Sun Microsystems. The language was initially called Oak after an oak tree . • Developer : Oracle Corporation • Stable release : Java Standard Edition 8 Update 60 (1.8.0_60) / August 18, 2015 • Implementation language: C and C++ • OS : Cross-platform (multi-platform) • Filename extensions: .java , .class, .jar (Java Archive)
  • 4. WORA/ WORE • "Write once, run anywhere" (WORA), or sometimes write once, run everywhere (WORE) • Ideally, this means Java can be developed on any device, compiled into a standard bytecode and be expected to run on any device equipped with a Java virtual machine (JVM). • The installation of a JVM or Java interpreter on chips, devices or software packages has become an industry standard practice. • This means a programmer can develop code on a PC and can expect it to run on Java enabled cell phones, as well as on routers and mainframes equipped with Java, without any adjustments.
  • 5. What is Bytecode in Java ? • Bytecode is nothing but the intermediate representation of Java source code which is produced by the Java compiler by compiling that source code. • This byte code is an machine independent code. • It is not completely a compiled code but it is an intermediate code somewhere in the middle which is later interpreted and executed by JVM. • Bytecode is a machine code for JVM. • But the machine code is platform specific whereas bytecode is platform independent that is the main difference between them. • It is stored in .class file which is created after compiling the source code.
  • 6. What is Bytecode in Java ?
  • 7. Java applet • An applet is a special kind of Java program that is designed to be transmitted over the internet and automatically executed by a Java compatible web browser. • A Java applet is a small application which is written in Java and delivered to users in the form of bytecode. • The user launches the Java applet from a web page, and the applet is then executed within a Java Virtual Machine (JVM) in a process separate from the web browser itself.
  • 8. Java applet • A Java applet can appear in a frame of the web page, a new application window, Sun's AppletViewer, or a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language, which was released in 1995. • Java applets can be written in any programming language that compiles to Java bytecode. They are usually written in Java, but other languages such as Jython,JRuby,Pascal,Scala, or Eiffel (via SmartEiffel) may be used as well.
  • 9. Principles There were five primary goals in the creation of the Java language: • It must be "simple, object-oriented, and familiar". • It must be "robust and secure". • It must be "architecture-neutral and portable". • It must execute with "high performance". • It must be "interpreted, threaded, and dynamic".
  • 10. Java Buzzwords • Simple • Secure • Portable • Object oriented • Robust • Multithreaded • Architecture neutral • Interpreted • High performance • Distributed • Dynamic
  • 11. Java Buzzwords • Simple: •Easy to learn •Easy to write programs using Java •More expressive. •Most of the complex or confusing features in C++ are removed in Java like pointers etc..
  • 12. Java Buzzwords • Secure: •Java provides data security through encapsulation. •Also we can write applets in Java which provides security. •An applet is a small program which can be downloaded from one computer to another automatically. •There is no need to worry about applets accessing the system resources which may compromise security.
  • 13. Java Buzzwords • Portable: •Applications written using Java are portable in the sense that they can be executed on any kind of computer containing any CPU or any operating system. •When an application written in Java is compiled, it generates an intermediate code file called as “bytecode”. •Bytecode helps Java to achieve portability.
  • 14. Java Buzzwords • Object - Oriented: •Java follows object oriented model. •So, it supports all the features of object oriented model like: Encapsulation Inheritance Polymorphism Abstraction
  • 15. Java Buzzwords • Robust: •A program or an application is said to be robust(reliable) when it is able to give some response in any kind of context. •Some of those features are: 1. Type checking 2. Exception handling
  • 16. Java Buzzwords • Multithreaded: •Java supports multithreading which is not supported by C and C++. •A thread is a light weight process. •Multithreading increases CPU efficiency. •A program can be divided into several threads and each thread can be executed concurrently or in parallel with the other threads. •Real world example for multithreading is computer. While we are listening to music, at the same time we can write in a word document or play a game.
  • 17. Java Buzzwords • Architecture - Neutral: •Bytecode helps Java to achieve portability. •Bytecode can be executed on computers having any kind of operating system or any kind of CPU. •Since Java applications can run on any kind of CPU, Java is architecture – neutral.
  • 18. Java Buzzwords • Interpreted and High Performance: •In Java 1.0 version there is an interpreter for executing the bytecode. As interpreter is quite slow when compared to a compiler, java programs used to execute slowly. •After Java 1.0 version the interpreter was replaced with JIT(Just-In-Time) compiler. •This enhances the program performance means it executes rapidly.
  • 19. Java Buzzwords • Distributed: •Java supports distributed computation using Remote Method Invocation (RMI) concept. •The server and client(s) can communicate with one another and the computations can be divided among several computers which makes the programs to execute rapidly. •In distributed systems, resources are shared.
  • 20. Java Buzzwords • Dynamic: •The Java Virtual Machine(JVM) maintains a lot of runtime information about the program and the objects in the program. •Libraries are dynamically linked during runtime. •So, even if you make dynamic changes to pieces of code, the program is not effected.
  • 21. How Java achieved Platform Independency ?
  • 22. How Java achieved Platform Independency ? • Java achieved platform independency by moving machine language generation from compilation phase to execution phase by introducing bytecodes and JVM.
  • 23. How Java achieved Platform Independency ?
  • 24. How Java achieved Platform Independency ?
  • 25. What is the most important feature of Java? • Java is a platform independent language. This is most important feature of Java language. Platform independent language means programs written in Java will work on any computer that has Java installed on it, regardless of operating system. • Whereas Multithreading, AWT and Event Handling, Networking, Database Connection are important features of java.
  • 26. Types of Java Software • Java software is divided into two sub products • 1) jdk (Java Development Kit) • 2) jre (Java Run time Environment) • jdk has both "Compiler + JVM" • jre has only "JVM" • JVM is a sub-part of jre and jre is a sub-part of jdk. So in order to run any java application jre software is sufficient but if we need to compile and execute the java program we have to install jdk software.
  • 27. Types of Java Software This diagram shows the difference between jdk,jre and JVM.
  • 28. Thanks for your patience.