SlideShare a Scribd company logo
Java Programming
Manish Kumar
(manish87it@gmail.com)
(MCA, M.Tech)
Lecture- 1
Contents
 Introduction to Java Programming
 What is Java
 History of Java
 Buzzwords/Features of Java
 Comparison of C++ and Java
 Types of Java
What is Java
Java:
 Java is a platform and high-level programming language.
 Java is a platform because Java has its own runtime environment and API.
 It is also object-oriented and secure programming language.
 In a single line, Java can also be defined as:
“Java is an internet programming language.”
History
History of Java:
Java was originally developed by Sun Microsystem by James Gosling in June, 1991. The first name of java was
Oak due to the symbol of strength and chosen as a national tree of many countries such as USA, France, etc. It
was renamed as Java in 1995. Java was originally designed for embedded system in electronic devices such as
set-up boxes, etc. It was also known as green. The first version of java (JDK 1.0) was released in 23rd January,
1996.
Presently, Java is used in mobiles, games, internet programming, etc.
Buzzwords of java
The buzzwords are also known as features of java. There are many features are available that make it strong and
popular. Some important features are mentioned below:
 Simple
 Object – Oriented
 Platform Independent
 Portable
 Robust
 Security
 Architecture Neutral
 High Performance
 Dynamic
 Multithreaded
 Distributed
Buzzwords of java
Description of Buzzwords:-
Simple – Java is so simple and easy to understand because of following reason:
1. The syntax of java is based on C++
2. Java has removed some complicated feature like explicit pointers, operator overloading, etc.
3. Use automatic garbage collection concept to remove unreferenced objects.
Object – Oriented - Everything in java is an object. Java is an Object – Oriented Programming language.
Object – Oriented Programming is a concept or methodology that simplifies software development and
maintenance by some rules.
Buzzwords of java
Platform Independent - Due to byte code (Code generated after compilation source file), Java is called
Platform Independent i.e. “Write Once Run Anywhere (on any platform like windows, Linux, etc.)”. Java is
a software-based platform that runs on the top of other hardware-based platforms.
Security - Java is more secure because of no explicit pointers and programs are run inside a virtual machine.
Buzzwords of java
Portable - Since Java byte code can be easily moved to any platform that’s why Java is portable. It does not
require any implementation.
Robust - Java tries to remove error prone situations by emphasizing mainly on compile time error checking and
runtime checking. Due to robust feature, the possibility of code crash is less. We achieve robust feature with the
help of Exception Handling.
Architecture Neutral - Since there are no implementation dependent features in java that’s why java is
architecture neutral.
High Performance - Java enables high performance due to the use of Just-In-Time compiler.
Buzzwords of java
Dynamic - Java supports dynamic classes loading i.e. classes are loaded on run time. Java is also supporting the
feature of garbage collection (Automatic memory management).
Multithreaded - With the help of this feature we can write the code that perform multiple task simultaneously.
The main advantages of multithreading feature that it does not occupy the memory separately even it shares the
common memory area.
Distributed - With the help of this feature we are able to access files by calling methods from any machine on
the internet. This feature can be implemented by RMI (Remote Method Invocation) and EJB (Enterprise Java
Beans) in java.
Compression of C++ & Java
Java C++
Java is platform independent. C++ is platform dependent
Used for Application Programming Mainly used for System Programming
Does not support operator overloading Support operator loading
Does not support multiple inheritance Support multiple inheritance
Does not support pointers directly (Can’t write pointer
program)
Directly support pointers (You can write pointer
program)
Uses compiler & interpreter both Use only compiler
Does not support Header files Supports Header files
Types of java
There are three types of java:
1. Java2 Standard Edition (J2SE) – Used to develop Window Application or Desktop Application.
2. Java2 Enterprise Edition (J2EE) – Used to develop Web Application.
3. Java2 Micro Edition (J2ME) – Used to develop Embedded and Mobile Application
Lecture - 1 introduction to java

More Related Content

What's hot

Spring Framework
Spring Framework  Spring Framework
Spring Framework
tola99
 
Java byte code & virtual machine
Java byte code & virtual machineJava byte code & virtual machine
Java byte code & virtual machine
Laxman Puri
 
INTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATIONINTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".
SudhanshuVijay3
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
Fu Cheng
 
Java architecture
Java architectureJava architecture
Java architecture
Rakesh Vadnala
 
Advanced java
Advanced java Advanced java
Advanced java NA
 
Lecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVMLecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVM
manish kumar
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
mahir jain
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
Elizabeth Thomas
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
Sujit Majety
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
Java Lover
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
Jeevesh Pandey
 
Learn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat ShahriyarLearn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat Shahriyar
Abir Mohammad
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
Papitha Velumani
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
Serhat Can
 

What's hot (20)

Spring Framework
Spring Framework  Spring Framework
Spring Framework
 
Java byte code & virtual machine
Java byte code & virtual machineJava byte code & virtual machine
Java byte code & virtual machine
 
INTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATIONINTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATION
 
Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
 
Java architecture
Java architectureJava architecture
Java architecture
 
Advanced java
Advanced java Advanced java
Advanced java
 
Lecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVMLecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVM
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Features of java
Features of javaFeatures of java
Features of java
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
 
Learn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat ShahriyarLearn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat Shahriyar
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
 
Spring notes
Spring notesSpring notes
Spring notes
 
Javascript by geetanjali
Javascript by geetanjaliJavascript by geetanjali
Javascript by geetanjali
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 

Similar to Lecture - 1 introduction to java

JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
SuganthiDPSGRKCW
 
Getting Started with JAVA
Getting Started with JAVAGetting Started with JAVA
Getting Started with JAVA
ShivamPathak318367
 
Presentation on java
Presentation on javaPresentation on java
Presentation on java
william john
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
Java1
Java1Java1
Java
Java Java
CORE JAVA
CORE JAVACORE JAVA
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
Harsha Batra
 
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 chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
Mukesh Tekwani
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
Madhura Bhalerao
 
Java introduction
Java introductionJava introduction
Java introduction
NAVEENA ESWARAN
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDF
Geekster
 
Java
JavaJava
Java
seenak
 
What are the popular features of java?
What are the popular features of java?What are the popular features of java?
What are the popular features of java?
kanchanmahajan23
 
FEATURES OF JAVA
FEATURES OF JAVAFEATURES OF JAVA
FEATURES OF JAVA
Rhythm Suiwal
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
Qualys
 

Similar to Lecture - 1 introduction to java (20)

JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Getting Started with JAVA
Getting Started with JAVAGetting Started with JAVA
Getting Started with JAVA
 
Presentation on java
Presentation on javaPresentation on java
Presentation on java
 
1 .java basic
1 .java basic1 .java basic
1 .java basic
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 
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...
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
 
Java introduction
Java introductionJava introduction
Java introduction
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDF
 
OOPS JAVA.pdf
OOPS JAVA.pdfOOPS JAVA.pdf
OOPS JAVA.pdf
 
Java
JavaJava
Java
 
What are the popular features of java?
What are the popular features of java?What are the popular features of java?
What are the popular features of java?
 
FEATURES OF JAVA
FEATURES OF JAVAFEATURES OF JAVA
FEATURES OF JAVA
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 

More from manish kumar

Lecture 9 access modifiers and packages
Lecture   9 access modifiers and packagesLecture   9 access modifiers and packages
Lecture 9 access modifiers and packages
manish kumar
 
Lecture 8 abstract class and interface
Lecture   8 abstract class and interfaceLecture   8 abstract class and interface
Lecture 8 abstract class and interface
manish kumar
 
Lecture 7 arrays
Lecture   7 arraysLecture   7 arrays
Lecture 7 arrays
manish kumar
 
Lecture 6 inheritance
Lecture   6 inheritanceLecture   6 inheritance
Lecture 6 inheritance
manish kumar
 
Lecture - 5 Control Statement
Lecture - 5 Control StatementLecture - 5 Control Statement
Lecture - 5 Control Statement
manish kumar
 
Lecture 4_Java Method-constructor_imp_keywords
Lecture   4_Java Method-constructor_imp_keywordsLecture   4_Java Method-constructor_imp_keywords
Lecture 4_Java Method-constructor_imp_keywords
manish kumar
 
Lecture - 3 Variables-data type_operators_oops concept
Lecture - 3 Variables-data type_operators_oops conceptLecture - 3 Variables-data type_operators_oops concept
Lecture - 3 Variables-data type_operators_oops concept
manish kumar
 

More from manish kumar (7)

Lecture 9 access modifiers and packages
Lecture   9 access modifiers and packagesLecture   9 access modifiers and packages
Lecture 9 access modifiers and packages
 
Lecture 8 abstract class and interface
Lecture   8 abstract class and interfaceLecture   8 abstract class and interface
Lecture 8 abstract class and interface
 
Lecture 7 arrays
Lecture   7 arraysLecture   7 arrays
Lecture 7 arrays
 
Lecture 6 inheritance
Lecture   6 inheritanceLecture   6 inheritance
Lecture 6 inheritance
 
Lecture - 5 Control Statement
Lecture - 5 Control StatementLecture - 5 Control Statement
Lecture - 5 Control Statement
 
Lecture 4_Java Method-constructor_imp_keywords
Lecture   4_Java Method-constructor_imp_keywordsLecture   4_Java Method-constructor_imp_keywords
Lecture 4_Java Method-constructor_imp_keywords
 
Lecture - 3 Variables-data type_operators_oops concept
Lecture - 3 Variables-data type_operators_oops conceptLecture - 3 Variables-data type_operators_oops concept
Lecture - 3 Variables-data type_operators_oops concept
 

Recently uploaded

PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 

Recently uploaded (20)

PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 

Lecture - 1 introduction to java

  • 2. Contents  Introduction to Java Programming  What is Java  History of Java  Buzzwords/Features of Java  Comparison of C++ and Java  Types of Java
  • 3. What is Java Java:  Java is a platform and high-level programming language.  Java is a platform because Java has its own runtime environment and API.  It is also object-oriented and secure programming language.  In a single line, Java can also be defined as: “Java is an internet programming language.”
  • 4. History History of Java: Java was originally developed by Sun Microsystem by James Gosling in June, 1991. The first name of java was Oak due to the symbol of strength and chosen as a national tree of many countries such as USA, France, etc. It was renamed as Java in 1995. Java was originally designed for embedded system in electronic devices such as set-up boxes, etc. It was also known as green. The first version of java (JDK 1.0) was released in 23rd January, 1996. Presently, Java is used in mobiles, games, internet programming, etc.
  • 5. Buzzwords of java The buzzwords are also known as features of java. There are many features are available that make it strong and popular. Some important features are mentioned below:  Simple  Object – Oriented  Platform Independent  Portable  Robust  Security  Architecture Neutral  High Performance  Dynamic  Multithreaded  Distributed
  • 6. Buzzwords of java Description of Buzzwords:- Simple – Java is so simple and easy to understand because of following reason: 1. The syntax of java is based on C++ 2. Java has removed some complicated feature like explicit pointers, operator overloading, etc. 3. Use automatic garbage collection concept to remove unreferenced objects. Object – Oriented - Everything in java is an object. Java is an Object – Oriented Programming language. Object – Oriented Programming is a concept or methodology that simplifies software development and maintenance by some rules.
  • 7. Buzzwords of java Platform Independent - Due to byte code (Code generated after compilation source file), Java is called Platform Independent i.e. “Write Once Run Anywhere (on any platform like windows, Linux, etc.)”. Java is a software-based platform that runs on the top of other hardware-based platforms. Security - Java is more secure because of no explicit pointers and programs are run inside a virtual machine.
  • 8. Buzzwords of java Portable - Since Java byte code can be easily moved to any platform that’s why Java is portable. It does not require any implementation. Robust - Java tries to remove error prone situations by emphasizing mainly on compile time error checking and runtime checking. Due to robust feature, the possibility of code crash is less. We achieve robust feature with the help of Exception Handling. Architecture Neutral - Since there are no implementation dependent features in java that’s why java is architecture neutral. High Performance - Java enables high performance due to the use of Just-In-Time compiler.
  • 9. Buzzwords of java Dynamic - Java supports dynamic classes loading i.e. classes are loaded on run time. Java is also supporting the feature of garbage collection (Automatic memory management). Multithreaded - With the help of this feature we can write the code that perform multiple task simultaneously. The main advantages of multithreading feature that it does not occupy the memory separately even it shares the common memory area. Distributed - With the help of this feature we are able to access files by calling methods from any machine on the internet. This feature can be implemented by RMI (Remote Method Invocation) and EJB (Enterprise Java Beans) in java.
  • 10. Compression of C++ & Java Java C++ Java is platform independent. C++ is platform dependent Used for Application Programming Mainly used for System Programming Does not support operator overloading Support operator loading Does not support multiple inheritance Support multiple inheritance Does not support pointers directly (Can’t write pointer program) Directly support pointers (You can write pointer program) Uses compiler & interpreter both Use only compiler Does not support Header files Supports Header files
  • 11. Types of java There are three types of java: 1. Java2 Standard Edition (J2SE) – Used to develop Window Application or Desktop Application. 2. Java2 Enterprise Edition (J2EE) – Used to develop Web Application. 3. Java2 Micro Edition (J2ME) – Used to develop Embedded and Mobile Application