SlideShare a Scribd company logo
1 of 17
Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423 603
(An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune)
NACC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Computer Engineering
(NBA Accredited)
Prof. S. N. Gunjal
Assistant Professor
E-mail : gunjasanjay@sanjivani.org.in
Contact No: 91301 91301 Ext :145, 9503916876
Course- Java Programming for Beginners
Topic – Introduction of Java programming
Prof. Gunjal S.N
Contents
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 2
 History of Java Programming
 Features of Java Programming
 Simple, Small and Familiar
 Object Oriented
 Compiled and Interpreted
 Robust & Secure
 Platform Independent and Portable
 Distributed and Network Oriented
 Multithreaded and Interactive
 High Performance
History of Java Programming
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 3
 Java is a general purpose object oriented programming language.
 Java was Developed by James Gosling, Patrick Naughton, Chris Warth, Ed
Frank, and Mike Sheridan at Sun Microsystems, Inc. in 1991. Small team
of Sun Microsystems called green team. And they give the name of the
programming has Greentalk initially; as it is from the green team so they
call it as a Greentalk.
 its extension is .gt. later on they developed a more improved version of the
concept and they gave the name is called Oak.
 Later on was searching that the name should be very suitable as the
programming favor it is. Programming really is very cool, lively, dynamic,
revolutionary and easy to spell and fun to say.
History of Java Programming
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 4
 In 1995 the Gosling introduced the name Java in 1995. In fact, Java is
an island of Indonesia, where best coffee of the world is produced.
 Sun Micro system first times, introduced a full set of programming
environment, they call it as JDK- Java Development Kit it was
released in January 23 1996.
 Initial motivation is to develop a platform independent language &
Java initially was designed for a small embedded system and suitable
for many electronic appliances like set of boxes.
 Become the language of internet. (portability and security).
15/06/20 DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon
Features of Java
Simple, Small and Familiar
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 6
 Similar to C/C++ in syntax
 But eliminates several complexities of
 No operator overloading
 No direct pointer manipulation or pointer arithmetic
 No multiple inheritance
 No malloc() and free() – handles memory automatically
Object Oriented
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 7
 Fundamentally based on OOP
 Classes and Objects
 Efficient re-use of packages such that the programmer only cares
about the interface and not the implementation
 The object model in java is simple and easy to extend.
Robust & Secure
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 8
 Checks the reliability of the code before Execution interms of
 Strict compile time and run time checking of data type.
 Exception handling
 It verify all memory access
 Ensure that no viruses are communicated with an applet.
 Garbage-collected language.
 Security-:
 First Check the Code either it is Effected by the Virus .
 Absence of pointer concept
Compiled and Interpreted
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 9
Java works in two stage
 Java compiler :translate the source code into byte code.
 Java interpreter converts the byte code into machine level
representation.
Byte Code:
 A highly optimized set of instructions to be executed by the java
runtime system, known as java virtual machine (JVM).
 Not executable code.
Java Virtual Machine (JVM):
 Need to be implemented for each platform.
 Although the details vary from machine to machine, all JVM
understand the same byte code.
Platform Independent and Portable
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 10
 “Write-Once Run-Anywhere”
 A Java program written and compiled on one machine can be executed
on any other machine
 Changes in system resources will not force any change in the program.
 The Java Virtual Machine (JVM) Convert byte code into machine level
representation
Platform Independence
02/23/18
JAVA COMPILER
JAVA BYTE CODE
JAVA INTERPRETER
Windows 95 Macintosh Solaris Windows NT
(translator)
(same for all platforms)
(one for each different system)
Distributed and Network Oriented
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 12
• Java grew up in the days of the Internet
– Inherently network friendly
– Original release of Java came with Networking libraries
– Newer releases contain even more for handling distributed
applications
• RMI, RPC
Multithreaded and Interactive
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 13
 Handles multiple tasks simultaneously.
 Java runtime system contains tools to support multiprocess
synchronization and construct smoothly running interactive systems.
High Performance
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 14
 Java performance is slower than C
 Provisions are added to reduce overhead at runtime.
 Incorporation of multithreading enhance the overall execution speed.
 Just-in-Time (JIT) can compile the byte code into machine code.
 Can sometimes be even faster than compiled C code!
Dynamic
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 15
 Capable of dynamically linking a new class libraries, methods and
objects.
 Java can use efficient functions available in C/C++.
 Installing new version of library automatically updates all programs
Summary
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 16
 Java is a general purpose object oriented programming language.
 Java was Developed by James Gosling, Patrick Naughton, Chris Warth, Ed Frank,
and Mike Sheridan at Sun Microsystems, Inc. in 1991. Small team of Sun
Microsystems called green team.
 Features of Java Programming
 Simple, Small and Familiar
 Object Oriented
 Compiled and Interpreted
 Robust & Secure
 Platform Independent and Portable
 Distributed and Network Oriented
 Multithreaded and Interactive
 High Performance
References:
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 17
1. Herbert Schildt, “Java: The Complete Reference” 10th Edition , McGraw-Hill
Education, ISBN: 978-1-25-958934-8 .
2. Samanta “The Object Oriented Programming with C++ and Java”,Prentise Hall.
.

More Related Content

Similar to Java Programming Intro

java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docxvikasbagra9887
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdfTechSearchWeb
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdfDeepakChaudhriAmbali
 
Java tutorial for beginners | Java Features
Java tutorial for beginners | Java FeaturesJava tutorial for beginners | Java Features
Java tutorial for beginners | Java FeaturesSpeed4Career
 
Java report by ravi raja
Java report by ravi rajaJava report by ravi raja
Java report by ravi rajaRaviRaja55
 
Neel training report
Neel training reportNeel training report
Neel training reportNeel Chandra
 
MODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptxMODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptxVeerannaKotagi1
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Mr. Akaash
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1Qualys
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java SlidesVinit Vyas
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01Jay Palit
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1RubaNagarajan
 
Industrial training report on core java
Industrial training report on core java Industrial training report on core java
Industrial training report on core java Nitesh Dubey
 

Similar to Java Programming Intro (20)

Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
 
TechSearchWeb.pdf
TechSearchWeb.pdfTechSearchWeb.pdf
TechSearchWeb.pdf
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdf
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf
 
Java tutorial for beginners | Java Features
Java tutorial for beginners | Java FeaturesJava tutorial for beginners | Java Features
Java tutorial for beginners | Java Features
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Java report by ravi raja
Java report by ravi rajaJava report by ravi raja
Java report by ravi raja
 
Neel training report
Neel training reportNeel training report
Neel training report
 
MODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptxMODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptx
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
 
Java@intro to java
Java@intro to javaJava@intro to java
Java@intro to java
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1
 
Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
 
Industrial training report on core java
Industrial training report on core java Industrial training report on core java
Industrial training report on core java
 

Recently uploaded

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 

Recently uploaded (20)

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 

Java Programming Intro

  • 1. Sanjivani Rural Education Society’s Sanjivani College of Engineering, Kopargaon-423 603 (An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune) NACC ‘A’ Grade Accredited, ISO 9001:2015 Certified Department of Computer Engineering (NBA Accredited) Prof. S. N. Gunjal Assistant Professor E-mail : gunjasanjay@sanjivani.org.in Contact No: 91301 91301 Ext :145, 9503916876 Course- Java Programming for Beginners Topic – Introduction of Java programming Prof. Gunjal S.N
  • 2. Contents DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 2  History of Java Programming  Features of Java Programming  Simple, Small and Familiar  Object Oriented  Compiled and Interpreted  Robust & Secure  Platform Independent and Portable  Distributed and Network Oriented  Multithreaded and Interactive  High Performance
  • 3. History of Java Programming DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 3  Java is a general purpose object oriented programming language.  Java was Developed by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems, Inc. in 1991. Small team of Sun Microsystems called green team. And they give the name of the programming has Greentalk initially; as it is from the green team so they call it as a Greentalk.  its extension is .gt. later on they developed a more improved version of the concept and they gave the name is called Oak.  Later on was searching that the name should be very suitable as the programming favor it is. Programming really is very cool, lively, dynamic, revolutionary and easy to spell and fun to say.
  • 4. History of Java Programming DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 4  In 1995 the Gosling introduced the name Java in 1995. In fact, Java is an island of Indonesia, where best coffee of the world is produced.  Sun Micro system first times, introduced a full set of programming environment, they call it as JDK- Java Development Kit it was released in January 23 1996.  Initial motivation is to develop a platform independent language & Java initially was designed for a small embedded system and suitable for many electronic appliances like set of boxes.  Become the language of internet. (portability and security).
  • 5. 15/06/20 DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon Features of Java
  • 6. Simple, Small and Familiar DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 6  Similar to C/C++ in syntax  But eliminates several complexities of  No operator overloading  No direct pointer manipulation or pointer arithmetic  No multiple inheritance  No malloc() and free() – handles memory automatically
  • 7. Object Oriented DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 7  Fundamentally based on OOP  Classes and Objects  Efficient re-use of packages such that the programmer only cares about the interface and not the implementation  The object model in java is simple and easy to extend.
  • 8. Robust & Secure DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 8  Checks the reliability of the code before Execution interms of  Strict compile time and run time checking of data type.  Exception handling  It verify all memory access  Ensure that no viruses are communicated with an applet.  Garbage-collected language.  Security-:  First Check the Code either it is Effected by the Virus .  Absence of pointer concept
  • 9. Compiled and Interpreted DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 9 Java works in two stage  Java compiler :translate the source code into byte code.  Java interpreter converts the byte code into machine level representation. Byte Code:  A highly optimized set of instructions to be executed by the java runtime system, known as java virtual machine (JVM).  Not executable code. Java Virtual Machine (JVM):  Need to be implemented for each platform.  Although the details vary from machine to machine, all JVM understand the same byte code.
  • 10. Platform Independent and Portable DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 10  “Write-Once Run-Anywhere”  A Java program written and compiled on one machine can be executed on any other machine  Changes in system resources will not force any change in the program.  The Java Virtual Machine (JVM) Convert byte code into machine level representation
  • 11. Platform Independence 02/23/18 JAVA COMPILER JAVA BYTE CODE JAVA INTERPRETER Windows 95 Macintosh Solaris Windows NT (translator) (same for all platforms) (one for each different system)
  • 12. Distributed and Network Oriented DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 12 • Java grew up in the days of the Internet – Inherently network friendly – Original release of Java came with Networking libraries – Newer releases contain even more for handling distributed applications • RMI, RPC
  • 13. Multithreaded and Interactive DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 13  Handles multiple tasks simultaneously.  Java runtime system contains tools to support multiprocess synchronization and construct smoothly running interactive systems.
  • 14. High Performance DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 14  Java performance is slower than C  Provisions are added to reduce overhead at runtime.  Incorporation of multithreading enhance the overall execution speed.  Just-in-Time (JIT) can compile the byte code into machine code.  Can sometimes be even faster than compiled C code!
  • 15. Dynamic DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 15  Capable of dynamically linking a new class libraries, methods and objects.  Java can use efficient functions available in C/C++.  Installing new version of library automatically updates all programs
  • 16. Summary DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 16  Java is a general purpose object oriented programming language.  Java was Developed by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems, Inc. in 1991. Small team of Sun Microsystems called green team.  Features of Java Programming  Simple, Small and Familiar  Object Oriented  Compiled and Interpreted  Robust & Secure  Platform Independent and Portable  Distributed and Network Oriented  Multithreaded and Interactive  High Performance
  • 17. References: DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 17 1. Herbert Schildt, “Java: The Complete Reference” 10th Edition , McGraw-Hill Education, ISBN: 978-1-25-958934-8 . 2. Samanta “The Object Oriented Programming with C++ and Java”,Prentise Hall. .