SlideShare a Scribd company logo
Presentation On:-    JAVA & C++  PUNJAB COLLEGE OF TECHNICAL EDUCATION
What is Java? Java is a programming language. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java is a general-purpose, concurrent, class-based, object-oriented language.
HISTORY    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language was initially called Oak after an oak tree that stood outside Gosling's office; it went by the name Green later, and was later renamed as java Sun Microsystems released the first public implementation as Java 1.0 in 1995. It promised "Write Once, Run Anywhere" (WORA),
In 19 Java 97, Sun Microsystems approached the ISO/IEC JTC1 standards body and later the E.cma International to formalize. On November 13, 2006, Sun released much of Java as open source software under the terms of the GNU General Public License (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms. Continues………..
Founder Of JAVA James A. Gosling was born on May 19, 1955 near Calgary, Alberta, Canada.  He is a software developer.  He is best known as the father of the Java programming language.
Principles of Java There were five primary goals in the creation of the Java language:  It should be "simple, 1st grade level and familiar". It should be "robust and secure". It should be "architecture-neutral and portable". It should execute with "low performance". It should be "un interpreted, unthreaded, and dynamic".  
Java Virtual Machine A Java Virtual Machine is a piece of software that is implemented on non-virtual hardware and on standard operating systems. The use of the same bytecode for all JVMs on all platforms allows Java to be described as a "compile once, run anywhere”. For example, Ada source code can be compiled to Java bytecode and executed on a JVM.
Java Execution Environment Java's execution environment is termed the Java Runtime Environment, or JRE. Programs intended to run on a JVM must be compiled into a standardized portable binary format. A program may consist of many classes in different files. For easier distribution of large programs, multiple class files may be packaged together in a .jar file.
Cross Platform Compiler A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is run.  Cross compiler tools are used to generate executables for embedded system or multiple platforms.  It is used to compile for a platform upon which it is not feasible to do the compiling, like microcontrollers that don't support an operating system.
What is c++ language? C++  is a statically typed, free-form, multi-paradigm, compiled, general purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features
History It was developed by Bjarne Stroustrup starting in 1979 at Bell Labs as an enhancement to the C language and originally named C with CLASSES. It was renamed C++ in 1983. C++ is one of the most popular programming languages and its application domains include systems software (such as Microsoft Windows, application software, device drivers, embedded software etc.
Founder Of C++ Bjarne Stroustrup was born on December 30, 1950 in Århus, Denmark.  He is a Danish computer scientist, most notable for the creation and the development of the widely used C++programming language.  He is currently Professor and holder of the College of Engineering Chair in Computer Science at Texas A&M University.
Features of C++ C++ is the multi paradigm, compile, free form , general purpose, statistically typed programming language.  The main features of the C++ are:- Classes Inheritance Data abstraction and encapsulation Polymorphism Dynamic Binding Message Passing
Difference Between C++ & Java C++ JAVA Compatible with C source code, except for a few corner cases. No backward compatibility with any previous language. The syntax is however strongly influenced by C/C++. Write once compile anywhere (WOCA) Write once run anywhere / everywhere (WORA / WORE) Allows procedural programming, object-oriented programming, and generic programming. Strongly encourages an object oriented programming paradigm.
C++ JAVA Allows direct calls to native system libraries. Call through the Java Native Interface and recently Java Native Access. Exposes low-level system facilities. Runs in a protected virtual machine Only provides object types and type names. Is reflective, allowing metaprogramming and dynamic code generation at runtime. Has multiple binary compatibility standards (commonly Microsoft and Itanium/GNU) Has a binary compatibility standard, allowing runtime check of correctness of libraries.
C++ JAVA Optional automated bounds checking. (e.g. the at() method invector and string containers) Normally performs bounds checking. HotSpotcan remove bounds checking. Standardized minimum limits for all numerical types, but the actual sizes are implementation-defined. Standardized limits and sizes of all primitive types on all platforms Pointers, References, and pass by value are supported Primitive and reference data types always passed by value
C++ JAVA Supports class, struck, and union and can allocate them on heap or stack Supports only class and allocates them on the heap.  Allows explicitly ove rriding types. Rigid type safety except for widening conversions. Autoboxing/Unboxing added in Java. Operator overloading for most operators The meaning of operators is generally immutable, however the + and += operators have been overloaded for Strings.
C++ JAVA Full multiple inheritance, including virtual inheritance. Single inheritance only from classes, multiple from interfaces Compile time Templates Generics are used to achieve an analogous effect to C++ templates, however they do not translate from source code to byte code due to the use of Type Erasure by the compiler. Function pointers, function objects, lambdas (in C++0x) and interfaces No function pointer mechanism. Instead idioms such as Interfaces, Adapters and Listeners are extensively used. No standard inline documentation mechanism. 3rd party software (e.g. Doxygen) exists. Javadoc standard documentation
C++ JAVA const keyword for defining immutable variables and member functions that do not change the object. final provides a limited version of const, equivalent to type*const pointers for objects and plain const of primitive types only. No const member functions, nor any equivalent to const type* pointers. Supports the goto statement. Supports labels with loops and statement blocks.
Thank You Now The House Is  Open for Queries  Presented To:- Mr. Rahul Dabral FACULTY PCTE Presented By:- Ankur Bhalla Simranjeet Singh Harshdeep Singh Hardyal Singh BCA 3D

More Related Content

PDF
Difference between c, c++ and java
PDF
C++ vs Java: Which one is the best?
PPTX
A Comparison of .NET Framework vs. Java Virtual Machine
PPSX
Introductionto .netframework by Priyanka Pinglikar
PPT
Nakov dot net-framework-overview-english
PPTX
ASSIGNMENT-II(a)
DOCX
Lecture19.07.2014
PDF
List of programming_languages_by_type
Difference between c, c++ and java
C++ vs Java: Which one is the best?
A Comparison of .NET Framework vs. Java Virtual Machine
Introductionto .netframework by Priyanka Pinglikar
Nakov dot net-framework-overview-english
ASSIGNMENT-II(a)
Lecture19.07.2014
List of programming_languages_by_type

What's hot (19)

PPTX
Java vs .net (beginners)
PPTX
Java vs .net
PPT
Technologies of today
PPTX
Introduction to .net FrameWork by QuontraSolutions
PDF
PIL - A Platform Independent Language
PDF
What is-java
PDF
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
PPTX
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
DOCX
Swift language seminar topic
PDF
Web Programming UNIT VIII notes
PPT
Introduction to .net
PPTX
Presentation1
PPT
Net framework
PPTX
C++ vs java which is best for future
PPTX
Introduction to .NET by QuontraSolutions
PDF
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
PPTX
.Net Framework Introduction
PDF
Tutorial c#
PPT
Dotnet framework
Java vs .net (beginners)
Java vs .net
Technologies of today
Introduction to .net FrameWork by QuontraSolutions
PIL - A Platform Independent Language
What is-java
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
Swift language seminar topic
Web Programming UNIT VIII notes
Introduction to .net
Presentation1
Net framework
C++ vs java which is best for future
Introduction to .NET by QuontraSolutions
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
.Net Framework Introduction
Tutorial c#
Dotnet framework
Ad

Viewers also liked (20)

PPTX
C programmimng basic.ppt
PPSX
Public speaking
PDF
BQC Aug 2012
PDF
Dierle nunes e a bahia revista iob - renovado paradigma
PPTX
Monomios y polinomios
PDF
in.pulso Marketing
PDF
Colección Noche 2009 - Astrid A Urban Afrowear
PPTX
Effective Writing
PDF
Retail Design by Tess Krüs
PDF
00 fbs reader fm
PPT
Participating Camps
DOCX
программа воспитания гуманных отношений среди подростков и молодежи
PPT
Nutrition for Injury Prevention
PPTX
Wie konnen Sie Fax mit iPhone senden
PDF
Gerakan Tauhid dan Sejarah Pembentukan KSA dari 1703-1932
PPT
ナレーション
PPTX
Sesión 2 taller negociando como un profesional capitalizarme
PPTX
PDF
регламент работы на сайте
DOCX
How to see the badi
C programmimng basic.ppt
Public speaking
BQC Aug 2012
Dierle nunes e a bahia revista iob - renovado paradigma
Monomios y polinomios
in.pulso Marketing
Colección Noche 2009 - Astrid A Urban Afrowear
Effective Writing
Retail Design by Tess Krüs
00 fbs reader fm
Participating Camps
программа воспитания гуманных отношений среди подростков и молодежи
Nutrition for Injury Prevention
Wie konnen Sie Fax mit iPhone senden
Gerakan Tauhid dan Sejarah Pembentukan KSA dari 1703-1932
ナレーション
Sesión 2 taller negociando como un profesional capitalizarme
регламент работы на сайте
How to see the badi
Ad

Similar to Introduction to java new (20)

PPT
Java ppt-class_basic data types methods definitions
PPT
Java ppt-class_Introduction_class_Objects.ppt
PPTX
Java Technologies notes of unit 1 and 2.
DOCX
java introduction.docx
PDF
Object Oriented Programming slides that can help students
PPTX
Java lab lecture 1
PPTX
JAVA was developed by Sun Microsystems in 1991
PDF
OOPS JAVA.pdf
PPT
Object Oriented Programming-JAVA
PPT
GETTING STARTED WITH JAVA(beginner)
PPTX
Introduction to java
PPTX
Java lab zero lecture
PPTX
introduction to object orinted programming through java
PPTX
JAVA Module 1______________________.pptx
PPTX
Java Basics in Mule
PPTX
Java Basics
PPTX
Java in Mule
PPTX
Unit1 introduction to Java
PPTX
UNIT 1 Programming in java Bsc program.pptx
Java ppt-class_basic data types methods definitions
Java ppt-class_Introduction_class_Objects.ppt
Java Technologies notes of unit 1 and 2.
java introduction.docx
Object Oriented Programming slides that can help students
Java lab lecture 1
JAVA was developed by Sun Microsystems in 1991
OOPS JAVA.pdf
Object Oriented Programming-JAVA
GETTING STARTED WITH JAVA(beginner)
Introduction to java
Java lab zero lecture
introduction to object orinted programming through java
JAVA Module 1______________________.pptx
Java Basics in Mule
Java Basics
Java in Mule
Unit1 introduction to Java
UNIT 1 Programming in java Bsc program.pptx

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Big Data Technologies - Introduction.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
A Presentation on Artificial Intelligence
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Machine learning based COVID-19 study performance prediction
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
Mobile App Security Testing_ A Comprehensive Guide.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Programs and apps: productivity, graphics, security and other tools
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The AUB Centre for AI in Media Proposal.docx
Dropbox Q2 2025 Financial Results & Investor Presentation
MIND Revenue Release Quarter 2 2025 Press Release
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Review of recent advances in non-invasive hemoglobin estimation
Big Data Technologies - Introduction.pptx
A comparative analysis of optical character recognition models for extracting...
Empathic Computing: Creating Shared Understanding
A Presentation on Artificial Intelligence
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Machine learning based COVID-19 study performance prediction

Introduction to java new

  • 1. Presentation On:- JAVA & C++ PUNJAB COLLEGE OF TECHNICAL EDUCATION
  • 2. What is Java? Java is a programming language. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java is a general-purpose, concurrent, class-based, object-oriented language.
  • 3. HISTORY   Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language was initially called Oak after an oak tree that stood outside Gosling's office; it went by the name Green later, and was later renamed as java Sun Microsystems released the first public implementation as Java 1.0 in 1995. It promised "Write Once, Run Anywhere" (WORA),
  • 4. In 19 Java 97, Sun Microsystems approached the ISO/IEC JTC1 standards body and later the E.cma International to formalize. On November 13, 2006, Sun released much of Java as open source software under the terms of the GNU General Public License (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms. Continues………..
  • 5. Founder Of JAVA James A. Gosling was born on May 19, 1955 near Calgary, Alberta, Canada. He is a software developer. He is best known as the father of the Java programming language.
  • 6. Principles of Java There were five primary goals in the creation of the Java language: It should be "simple, 1st grade level and familiar". It should be "robust and secure". It should be "architecture-neutral and portable". It should execute with "low performance". It should be "un interpreted, unthreaded, and dynamic".  
  • 7. Java Virtual Machine A Java Virtual Machine is a piece of software that is implemented on non-virtual hardware and on standard operating systems. The use of the same bytecode for all JVMs on all platforms allows Java to be described as a "compile once, run anywhere”. For example, Ada source code can be compiled to Java bytecode and executed on a JVM.
  • 8. Java Execution Environment Java's execution environment is termed the Java Runtime Environment, or JRE. Programs intended to run on a JVM must be compiled into a standardized portable binary format. A program may consist of many classes in different files. For easier distribution of large programs, multiple class files may be packaged together in a .jar file.
  • 9. Cross Platform Compiler A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is run. Cross compiler tools are used to generate executables for embedded system or multiple platforms. It is used to compile for a platform upon which it is not feasible to do the compiling, like microcontrollers that don't support an operating system.
  • 10. What is c++ language? C++ is a statically typed, free-form, multi-paradigm, compiled, general purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features
  • 11. History It was developed by Bjarne Stroustrup starting in 1979 at Bell Labs as an enhancement to the C language and originally named C with CLASSES. It was renamed C++ in 1983. C++ is one of the most popular programming languages and its application domains include systems software (such as Microsoft Windows, application software, device drivers, embedded software etc.
  • 12. Founder Of C++ Bjarne Stroustrup was born on December 30, 1950 in Århus, Denmark. He is a Danish computer scientist, most notable for the creation and the development of the widely used C++programming language. He is currently Professor and holder of the College of Engineering Chair in Computer Science at Texas A&M University.
  • 13. Features of C++ C++ is the multi paradigm, compile, free form , general purpose, statistically typed programming language. The main features of the C++ are:- Classes Inheritance Data abstraction and encapsulation Polymorphism Dynamic Binding Message Passing
  • 14. Difference Between C++ & Java C++ JAVA Compatible with C source code, except for a few corner cases. No backward compatibility with any previous language. The syntax is however strongly influenced by C/C++. Write once compile anywhere (WOCA) Write once run anywhere / everywhere (WORA / WORE) Allows procedural programming, object-oriented programming, and generic programming. Strongly encourages an object oriented programming paradigm.
  • 15. C++ JAVA Allows direct calls to native system libraries. Call through the Java Native Interface and recently Java Native Access. Exposes low-level system facilities. Runs in a protected virtual machine Only provides object types and type names. Is reflective, allowing metaprogramming and dynamic code generation at runtime. Has multiple binary compatibility standards (commonly Microsoft and Itanium/GNU) Has a binary compatibility standard, allowing runtime check of correctness of libraries.
  • 16. C++ JAVA Optional automated bounds checking. (e.g. the at() method invector and string containers) Normally performs bounds checking. HotSpotcan remove bounds checking. Standardized minimum limits for all numerical types, but the actual sizes are implementation-defined. Standardized limits and sizes of all primitive types on all platforms Pointers, References, and pass by value are supported Primitive and reference data types always passed by value
  • 17. C++ JAVA Supports class, struck, and union and can allocate them on heap or stack Supports only class and allocates them on the heap.  Allows explicitly ove rriding types. Rigid type safety except for widening conversions. Autoboxing/Unboxing added in Java. Operator overloading for most operators The meaning of operators is generally immutable, however the + and += operators have been overloaded for Strings.
  • 18. C++ JAVA Full multiple inheritance, including virtual inheritance. Single inheritance only from classes, multiple from interfaces Compile time Templates Generics are used to achieve an analogous effect to C++ templates, however they do not translate from source code to byte code due to the use of Type Erasure by the compiler. Function pointers, function objects, lambdas (in C++0x) and interfaces No function pointer mechanism. Instead idioms such as Interfaces, Adapters and Listeners are extensively used. No standard inline documentation mechanism. 3rd party software (e.g. Doxygen) exists. Javadoc standard documentation
  • 19. C++ JAVA const keyword for defining immutable variables and member functions that do not change the object. final provides a limited version of const, equivalent to type*const pointers for objects and plain const of primitive types only. No const member functions, nor any equivalent to const type* pointers. Supports the goto statement. Supports labels with loops and statement blocks.
  • 20. Thank You Now The House Is Open for Queries Presented To:- Mr. Rahul Dabral FACULTY PCTE Presented By:- Ankur Bhalla Simranjeet Singh Harshdeep Singh Hardyal Singh BCA 3D