SlideShare une entreprise Scribd logo
1  sur  22
JAVA SE
OBJECTIVES:
   Introduction
   Need of Programming languages
   Different Programming languages
   Java need in today’s world
   Categorization of java
   Installation of a JDK
   Execution of a java program
   JRE – JVM – JDK – SDK - IDE
Introduction
   A programming language is an artificial language
    designed to communicate instructions to a
    machine, particularly a computer.

   Programming languages can be used to create
    programs that control the behavior of a machine
    and/or to express algorithms precisely.
Contd…
   The description of a programming language is
    usually split into two components. They are
    Syntax (form) and Semantics (meaning).

   Finally programming language is a language,
    which is used to maintain communication with a
    System.
Need of Programming languages
Different Programming languages
Applications and   Artificial Intelligence   Database development    Script development
Program            development
development                                  DBASE                   awk
C                  AIML                      FoxPro
                                                                     bash
C#                 C                         MySQL
C++                C#                        SQL                     Batchfile
D                  C++                       Visual FoxPro           Perl
Java               Prolog                                            Tcl
Tcl
Visual Basic



Game               Computer drivers or       Internet and web page
development        other hardware            development
                   interface development
C                                            HDML
C#                                           HTML
C++                Assembly
                   C                         Java
DarkBASIC                                    JavaScript
Java                                         Perl
                                             PHP
                                             XML
Java needs in today’s world
   For Desktop

   Enterprise

   Go Mobile

   Embedded

   Internet (Client/Server)
Categorization of java
 Java Card
 Micro Edition (ME)          JAVA ME
 Standard Edition (SE)     JAVA SE
 Enterprise Edition (EE)   JAVA EE
 JavaFX
 PersonalJava (discontinued)
Java Platform & VM & Devices
Versions of java
 JDK 1.0 (January 23, 1996)
 JDK 1.1 (February 19, 1997)
 J2SE 1.2 (December 8, 1998)
 J2SE 1.3 (May 8, 2000)
 J2SE 1.4 (February 6, 2002)
 J2SE 5.0 (September 30, 2004)
 Java SE 6 (December 11, 2006)
 Java SE 7 (July 28, 2011)
Installation of a JDK (JAVA SE)


   Video reference
Execution of a java program

   Write a program in Notepad or IDE or any text editor



 Save as       FileName.java
 Compile       javac FileName.java
 Run           java FileName.java
Source Computer


  Java Program       Compilation     Java ByteCode




                  Internet


  Verification
                                     Your computer

                                     Restricted Env.
Java ByteCode            Execution
Execution model of java

source                       bytecode
 (text)     compiler      (aka. class file)
                                               JVML
                                   dynamic
                                   loading

 virtual machine        verifier


                                      JIT       compiled
           bytecode                               code
                                    compiler
          interpreter


                                   CPU
JRE – JVM – JDK – SDK - IDE

   JRE : JAVA RUNTIME ENVIRONMENT

   JVM : JAVA VIRTUAL MACHINE

   JDK : JAVA DEVELOPMENT KIT

   SDK : SOFTWARE DEVELOPMENT KIT

   IDE : INTEGRATED DEVELOPMENT ENVIRONMENT
   JVM :                    A self-contained operating
    environment that behaves as if it is a separate
    computer. For example, Java applets run in a Java
    virtual machine (JVM) that has no access to the host
    operating system.

   JRE: Java Run-Time Environment is the part of the
    Java Development Kit (JDK) required to run Java
    programs.
                   It comprises the Java Virtual Machine,
    the Java platform core classes, and supporting files. It
    does not include the compiler, debugger, or other tools
    present in the JDK. ...
   JDK(Java Development Kit) :
       software development package from Sun Microsystems
    that implements the basic set of tools needed to write, test
    and debug Java applications and applets


   SDK(Software Developers Kit)
       a set of tools, including API, frameworks, interface
    elements, etc. used to create software, i.e. apps.


   IDE:
        An integrated development environment (IDE) (also
    known as integrated design environment, integrated
    debugging environment or interactive development
    environment) is a software application that provides
    comprehensive facilities to computer programmers for
    software development.
Questions…
1) What is the use of bin and lib in JDK?
  A) Bin contains all tools such as javac, appletviewer, awt tool, etc., whereas lib
   contains API and all packages.



2) Question: What's the difference between J2SDK 1.5 and J2SDK 5.0?
  A) There's no difference, Sun Microsystems just re-branded this version.




3) The Differences among Java, C And C++ ?
  A) Paradigm , Preprocessor, Memory Management, Pointers, Bounds
    Checking, Portability And Performance, Complex Data Types, Strings,
    Multiple Inheritance, Goto Statement …
Feature                 C                            C++                          Java
                                                                              OOP, Generic
                                                     Procedural, OOP, Generic
Paradigms               Procedural                                            Programming (from Java
                                                     Programming
                                                                              5)
Form of Compiled Source
                        Executable Native Code       Executable Native Code       Java bytecode
Code
                                                                                  Managed, using a garbage
Memory management       Manual                       Manual
                                                                                  collector

                                                 Yes, very commonly used,
                                                                           No pointers; references
Pointers                Yes, very commonly used. but some form of
                                                                           are used instead.
                                                 references available too.

Preprocessor            Yes                          Yes                          No

String Type             Character arrays             Character arrays, objects    Objects

Complex Data Types      Structures, unions           Structures, unions, classes Classes

                                                                                  Single class inheritance,
Inheritance             N/A                          Multiple class inheritance   multiple interface
                                                                                  implementation

Operator Overloading    N/A                          Yes                          No

                        Yes, with warnings if loss   Yes, with warnings if loss   Not at all if loss could
Automatic coercions
                        could occur                  could occur                  occur; msut cast explicitly

Variadic Parameters     Yes                          Yes                          No
Goto Statement          Yes                          Yes                          No
To be contd…

Contenu connexe

Tendances

Tendances (20)

Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Introduction of java
Introduction  of javaIntroduction  of java
Introduction of java
 
Java features
Java  features Java  features
Java features
 
Comp102 lec 3
Comp102   lec 3Comp102   lec 3
Comp102 lec 3
 
Core Java
Core JavaCore Java
Core Java
 
Introduction To Java.
Introduction To Java.Introduction To Java.
Introduction To Java.
 
Review Session and Attending Java Interviews
Review Session and Attending Java Interviews Review Session and Attending Java Interviews
Review Session and Attending Java Interviews
 
java training in jaipur|java training|core java training|java training compa...
 java training in jaipur|java training|core java training|java training compa... java training in jaipur|java training|core java training|java training compa...
java training in jaipur|java training|core java training|java training compa...
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Basic online java course - Brainsmartlabs
Basic online java course  - BrainsmartlabsBasic online java course  - Brainsmartlabs
Basic online java course - Brainsmartlabs
 
Object oriented concepts with java
Object oriented concepts with javaObject oriented concepts with java
Object oriented concepts with java
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Presentation on java
Presentation  on  javaPresentation  on  java
Presentation on java
 
Core Java
Core JavaCore Java
Core Java
 
Java and Java platforms
Java and Java platformsJava and Java platforms
Java and Java platforms
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Java for C++ programers
Java for C++ programersJava for C++ programers
Java for C++ programers
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 

En vedette

String handling session 5
String handling session 5String handling session 5
String handling session 5Raja Sekhar
 
Strings and common operations
Strings and common operationsStrings and common operations
Strings and common operationsTurnToTech
 
Java: strings e arrays
Java: strings e arraysJava: strings e arrays
Java: strings e arraysArthur Emanuel
 
String java
String javaString java
String java774474
 
L21 io streams
L21 io streamsL21 io streams
L21 io streamsteach4uin
 
String handling(string class)
String handling(string class)String handling(string class)
String handling(string class)Ravi_Kant_Sahu
 
Java string handling
Java string handlingJava string handling
Java string handlingSalman Khan
 
Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...
Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...
Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...CMS Computer
 
Moz public invst-agriculture
Moz public invst-agricultureMoz public invst-agriculture
Moz public invst-agricultureIFPRI-Maputo
 
Moz econ wide-implctns_agric-growth
Moz econ wide-implctns_agric-growthMoz econ wide-implctns_agric-growth
Moz econ wide-implctns_agric-growthIFPRI-Maputo
 
Real estate craig feigin
Real estate  craig feiginReal estate  craig feigin
Real estate craig feiginCraig Feigin
 
In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?
In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?
In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?Harsh Beria
 
第一次 概念發想
第一次 概念發想第一次 概念發想
第一次 概念發想alan03265
 
Pron d i_r_ci_ne_ripasso_bas2
Pron d i_r_ci_ne_ripasso_bas2Pron d i_r_ci_ne_ripasso_bas2
Pron d i_r_ci_ne_ripasso_bas2Danilo Buccarello
 
Shoothill Floodalert
Shoothill FloodalertShoothill Floodalert
Shoothill Floodalertsmespire
 
Implementing INSPIRE services for Dutch provinces
Implementing INSPIRE services for Dutch provincesImplementing INSPIRE services for Dutch provinces
Implementing INSPIRE services for Dutch provincessmespire
 

En vedette (20)

String handling session 5
String handling session 5String handling session 5
String handling session 5
 
Strings and common operations
Strings and common operationsStrings and common operations
Strings and common operations
 
Java 06 Strings Arrays
Java 06 Strings ArraysJava 06 Strings Arrays
Java 06 Strings Arrays
 
Java: strings e arrays
Java: strings e arraysJava: strings e arrays
Java: strings e arrays
 
String java
String javaString java
String java
 
L21 io streams
L21 io streamsL21 io streams
L21 io streams
 
String handling(string class)
String handling(string class)String handling(string class)
String handling(string class)
 
Strings
StringsStrings
Strings
 
Java string handling
Java string handlingJava string handling
Java string handling
 
Strings in Java
Strings in JavaStrings in Java
Strings in Java
 
Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...
Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...
Photoshop, CorelDraw, Illustrator, InDesign, Flash –Multimedia Training in Ba...
 
Moz public invst-agriculture
Moz public invst-agricultureMoz public invst-agriculture
Moz public invst-agriculture
 
Moz econ wide-implctns_agric-growth
Moz econ wide-implctns_agric-growthMoz econ wide-implctns_agric-growth
Moz econ wide-implctns_agric-growth
 
Real estate craig feigin
Real estate  craig feiginReal estate  craig feigin
Real estate craig feigin
 
In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?
In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?
In a warming climate, why do we see decreasing heat flux in the Arctic Ocean?
 
第一次 概念發想
第一次 概念發想第一次 概念發想
第一次 概念發想
 
 
Pron d i_r_ci_ne_ripasso_bas2
Pron d i_r_ci_ne_ripasso_bas2Pron d i_r_ci_ne_ripasso_bas2
Pron d i_r_ci_ne_ripasso_bas2
 
Shoothill Floodalert
Shoothill FloodalertShoothill Floodalert
Shoothill Floodalert
 
Implementing INSPIRE services for Dutch provinces
Implementing INSPIRE services for Dutch provincesImplementing INSPIRE services for Dutch provinces
Implementing INSPIRE services for Dutch provinces
 

Similaire à Java Starting (20)

Java Basic PART I
Java Basic PART IJava Basic PART I
Java Basic PART I
 
What Your Jvm Has Been Trying To Tell You
What Your Jvm Has Been Trying To Tell YouWhat Your Jvm Has Been Trying To Tell You
What Your Jvm Has Been Trying To Tell You
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
Understanding the Dalvik Virtual Machine
Understanding the Dalvik Virtual MachineUnderstanding the Dalvik Virtual Machine
Understanding the Dalvik Virtual Machine
 
JavaClassPresentation
JavaClassPresentationJavaClassPresentation
JavaClassPresentation
 
JVM.pptx
JVM.pptxJVM.pptx
JVM.pptx
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
 
Javanotes ww8
Javanotes ww8Javanotes ww8
Javanotes ww8
 
Java notes
Java notesJava notes
Java notes
 
Java -lec-1
Java -lec-1Java -lec-1
Java -lec-1
 
Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 
java intro.pptx
java intro.pptxjava intro.pptx
java intro.pptx
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Java compilation
Java compilationJava compilation
Java compilation
 
Object Oriented Programming-JAVA
Object Oriented Programming-JAVAObject Oriented Programming-JAVA
Object Oriented Programming-JAVA
 
java basics.pptx
java basics.pptxjava basics.pptx
java basics.pptx
 
Java introduction
Java introductionJava introduction
Java introduction
 

Dernier

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Dernier (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 

Java Starting

  • 2. OBJECTIVES:  Introduction  Need of Programming languages  Different Programming languages  Java need in today’s world  Categorization of java  Installation of a JDK  Execution of a java program  JRE – JVM – JDK – SDK - IDE
  • 3. Introduction  A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer.  Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely.
  • 4. Contd…  The description of a programming language is usually split into two components. They are Syntax (form) and Semantics (meaning).  Finally programming language is a language, which is used to maintain communication with a System.
  • 6. Different Programming languages Applications and Artificial Intelligence Database development Script development Program development development DBASE awk C AIML FoxPro bash C# C MySQL C++ C# SQL Batchfile D C++ Visual FoxPro Perl Java Prolog Tcl Tcl Visual Basic Game Computer drivers or Internet and web page development other hardware development interface development C HDML C# HTML C++ Assembly C Java DarkBASIC JavaScript Java Perl PHP XML
  • 7. Java needs in today’s world  For Desktop  Enterprise  Go Mobile  Embedded  Internet (Client/Server)
  • 8. Categorization of java  Java Card  Micro Edition (ME) JAVA ME  Standard Edition (SE) JAVA SE  Enterprise Edition (EE) JAVA EE  JavaFX  PersonalJava (discontinued)
  • 9. Java Platform & VM & Devices
  • 10. Versions of java  JDK 1.0 (January 23, 1996)  JDK 1.1 (February 19, 1997)  J2SE 1.2 (December 8, 1998)  J2SE 1.3 (May 8, 2000)  J2SE 1.4 (February 6, 2002)  J2SE 5.0 (September 30, 2004)  Java SE 6 (December 11, 2006)  Java SE 7 (July 28, 2011)
  • 11. Installation of a JDK (JAVA SE)  Video reference
  • 12. Execution of a java program  Write a program in Notepad or IDE or any text editor  Save as FileName.java  Compile javac FileName.java  Run java FileName.java
  • 13. Source Computer Java Program Compilation Java ByteCode Internet Verification Your computer Restricted Env. Java ByteCode Execution
  • 14. Execution model of java source bytecode (text) compiler (aka. class file) JVML dynamic loading virtual machine verifier JIT compiled bytecode code compiler interpreter CPU
  • 15. JRE – JVM – JDK – SDK - IDE  JRE : JAVA RUNTIME ENVIRONMENT  JVM : JAVA VIRTUAL MACHINE  JDK : JAVA DEVELOPMENT KIT  SDK : SOFTWARE DEVELOPMENT KIT  IDE : INTEGRATED DEVELOPMENT ENVIRONMENT
  • 16.
  • 17. JVM : A self-contained operating environment that behaves as if it is a separate computer. For example, Java applets run in a Java virtual machine (JVM) that has no access to the host operating system.  JRE: Java Run-Time Environment is the part of the Java Development Kit (JDK) required to run Java programs. It comprises the Java Virtual Machine, the Java platform core classes, and supporting files. It does not include the compiler, debugger, or other tools present in the JDK. ...
  • 18. JDK(Java Development Kit) : software development package from Sun Microsystems that implements the basic set of tools needed to write, test and debug Java applications and applets  SDK(Software Developers Kit) a set of tools, including API, frameworks, interface elements, etc. used to create software, i.e. apps.  IDE: An integrated development environment (IDE) (also known as integrated design environment, integrated debugging environment or interactive development environment) is a software application that provides comprehensive facilities to computer programmers for software development.
  • 19.
  • 20. Questions… 1) What is the use of bin and lib in JDK? A) Bin contains all tools such as javac, appletviewer, awt tool, etc., whereas lib contains API and all packages. 2) Question: What's the difference between J2SDK 1.5 and J2SDK 5.0? A) There's no difference, Sun Microsystems just re-branded this version. 3) The Differences among Java, C And C++ ? A) Paradigm , Preprocessor, Memory Management, Pointers, Bounds Checking, Portability And Performance, Complex Data Types, Strings, Multiple Inheritance, Goto Statement …
  • 21. Feature C C++ Java OOP, Generic Procedural, OOP, Generic Paradigms Procedural Programming (from Java Programming 5) Form of Compiled Source Executable Native Code Executable Native Code Java bytecode Code Managed, using a garbage Memory management Manual Manual collector Yes, very commonly used, No pointers; references Pointers Yes, very commonly used. but some form of are used instead. references available too. Preprocessor Yes Yes No String Type Character arrays Character arrays, objects Objects Complex Data Types Structures, unions Structures, unions, classes Classes Single class inheritance, Inheritance N/A Multiple class inheritance multiple interface implementation Operator Overloading N/A Yes No Yes, with warnings if loss Yes, with warnings if loss Not at all if loss could Automatic coercions could occur could occur occur; msut cast explicitly Variadic Parameters Yes Yes No Goto Statement Yes Yes No

Notes de l'éditeur

  1. STEP 1: Download JDKGoto Java SE download site @ http://www.oracle.com/technetwork/java/javase/downloads/index.html.Click the "Download" button under "JDK" of "Java SE 7".Choose your operating platform, e.g., Windows x86 (for 32-bit Windows OS - "jdk-7u2-windows-i586.exe" 84MB); or Windows x64 (for 64-bit Windows OS).(For Mac Users Only) Download JDK from http://developer.apple.com/java/download/ and follow the instructions to install (or google "how to install JDK on Mac").STEP 2: Install JDK/JRERun the downloaded installer, which installs both the JDK (Java Development Kit) and JRE (Java Runtime). By default, the JDK and JRE will be installed into directories "C:\\Program Files\\java\\jdk1.7.0" and "C:\\Program Files\\java\\jre7", respectively. For novices, accept the defaults.I shall refer to the JDK installed directory as <JAVA_HOME>, hereafter, in this article.(For Advanced Users Only)The default JDK/JRE directories work but I recommend avoiding "Program Files" directory because of that blank character in the directory name. You may change the installed directories for JDK and JRE during installation. I personally installed JDK and all my programming tools in "d:\\bin" (instead of "C:\\Program Files") for ease of maintenance.It is always cleaner to un-install all the out-dated JDK/JRE before installing a new version.STEP 3: Include JDK's "bin" directory in the PATHWindows Operating System searches the current directory and the directories listed in the PATH environment variable for executable programs invoked from the CMD shell. JDK's programs (such as compiler javac.exe and runtime java.exe) reside in directory "<JAVA_HOME>\\bin" (where <JAVA_HOME> denotes the JDK installed directory you have chosen in the previous step). You need to include the "<JAVA_HOME>\\bin" directory in the PATH environment variable.To edit the PATH environment variable in Windows 2000/XP/Vista/7:Click the "Start" button ⇒ "Control Panel" ⇒ "System" ⇒ (Vista/7 only) "Advanced system settings".Switch to "Advanced" tab ⇒ "Environment Variables..."In "System Variables" box, scroll down to select "PATH" ⇒ "Edit..."In "Variable value" field, INSERT "c:\\Program Files\\java\\jdk1.7.0\\bin" (assume that this is your JDK's binary directory) IN FRONT of all the existing directories, followed by a semi-colon (;) which separates the JDK's binary directory from the rest of the existing directories. DO NOT DELETE any existing entries; otherwise, some existing applications may not run. Variable name : PATH Variable value : c:\\Program Files\\java\\jdk1.7.0\\bin;....exiting entries.... (For Advanced Users Only) I suggested that you place the JDK binary directory in front of "c:\\windows\\system32" and "c:\\windows". This is because some Windows systems may have an out-dated copy of JDK/JRE in these directories. Do a search for "java.exe", and you will be amazed of the findings.You could read "Java Applications and Environment Variable" for more discussions about PATH environment variable.(For Mac and Linux Users Only) You can set the environment variables JAVA_HOME and PATH in your .profile or .bashrc or .bash_profile (under your home directory $HOME) by including the following commands:export JAVA_HOME=path_to_JDK_directory export PATH=$JAVA_HOME/bin:$PATH For Mac OS X, the path_to_JDK_directory is probably /Library/Java/Home. For Linux (Ubuntu), it is probably /usr/lib/jvm/java-7-xxx.STEP 4: Verify the JDK InstallationLaunch a CMD shell (click the "Start" button ⇒ run... ⇒ enter "cmd"), andIssue a "path" command to list the content of the PATH environment variable. Check the output and make sure that <JAVA_HOME>\\bin is listed in the PATH. prompt> pathPATH=c:\\Program Files\\java\\jdk1.7.0\\bin;......other entries......Issue the following commands to verify that JDK is properly installed and display its version: prompt> java -version java version "1.7.0"Java(TM) SE Runtime Environment (build 1.7.0-b147)Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing) prompt> javac Usage: javac <options> <source files> ......... .........STEP 5: Compile & Run a Java Hello-world ProgramRead "Writing your First Java Program with JDK and a Programming Text Editor". "Everything that can possibly go wrong will go wrong": Read "JDK Installation Common Errors".STEP 6: Download JDK API DocumentationThe JDK download does not include the documentation, which needs to be downloaded separately. In the past, I always insist that my students should have a local copy of JDK API Documentation. But, today, you can easily access the online copy by googling "JDK 7 Documentation".To install JDK API documentation:From the Java SE download page (@ http://www.oracle.com/technetwork/java/javase/downloads/index.html), look for "Java SE 7 Documentation" (under "Additional Resources") ⇒ Download the zip-file (e.g., "jdk-7....zip" - about 57MB).Unzip into the <JAVA_HOME> (JDK installed directory). The documentation will be unzipped into "<$JAVA_HOME>\\docs". Browse the JDK documentation by opening "<JAVA_HOME>\\docs\\index.html".STEP 7: (For Advanced Users Only) JDK's Source CodeSource code for JDK is provided and kept in "<JAVA_HOME>\\src.zip". I strongly recommend that you to go through some of the source files such as "String.java", "Math.java", and "Integer.java", under "java\\lang".