SlideShare a Scribd company logo
2
Most read
3
Most read
Bharathiar University
Re - Accredited by NAAC with “A” Grade - Awarded 14 Rank by MHRD - NIRF,
Govt. of India.
Difference between C, C++ and JAVA
N.MOHANASUNDARAM
II - MCA
(Reg. No. 15CSEA52)
DEPARTMENT OF COMPUTER APPLICATIONS
SCHOOL OF COMPUTER SCIENCE AND ENGINEERING
BHARATHIAR UNIVERSITY
COIMBATORE - 641046
TAMILNADU
 What is the C language?
C is a high-level and general purpose programming language that is ideal
for developing firmware or portable applications. Originally intended for writing
system software, C was developed at Bell Labs by Dennis Ritchie for the Unix
Operating System (OS) in the early 1970s.
 What is the C++ language?
C++ is a general-purpose object-oriented programming (OOP) language,
developed by Bjarne Stroustrup, and is an extension of the C language. It is
therefore possible to code C++ in a "C style" or "object-oriented style."
C++ is considered to be an intermediate-level language, as it encapsulates
both high- and low-level language features. Initially, the language was called "C
with classes" as it had all the properties of the C language with an additional
concept of "classes." However, it was renamed C++ in 1983.
 What is the Java language?
Java is a general purpose, high-level programming language developed by
Sun Microsystems. The Java programming language was developed by a small
team of engineers, known as the Green Team, who initiated the language in 1991.
The language was originally called OAK, and at the time it was designed for
handheld devices and set-top boxes. Oak was unsuccessful and in 1995 Sun
changed the name to Java and modified the language to take advantage of the
burgeoning World Wide Web.
Later, in 2009, Oracle Corporation acquired Sun Microsystems and took
ownership of two key Sun software assets: Java and Solaris.
Difference between C, C++ and Java:
Aspects C C++ Java
Developed Year 1972 1979 1991
Developed By Dennis Ritchie Bjarne Stroustrup James Gosling
Successor of BCPL C
C(Syntax) & C++
(Structure)
Paradigms Procedural Object Oriented Object Oriented
Platform Dependency Dependent Dependent Independent
Keywords 32 63
50 defined (goto, const
unusable)
Datatypes : union,
structure
Supported Supported Not Supported
Pre-processor
directives
Supported (#include,
#define)
Supported
(#include, #define)
Not Supported
Header files Supported Supported Use Packages (import)
Inheritance No Inheritance Supported
Multiple Inheritance not
Supported
Overloading No Overloading Supported
Operator Overloading
not Supported
Pointers Supported Supported No Pointers
Code Translation Compiled Compiled Interpreted
Storage Allocation Uses malloc, calloc Uses new , delete uses garbage collector
Multi-threading and
Interfaces
Not Supported Not Supported Supported
Exception Handling
No Exception
handling
Supported Supported
Templates Not Supported Supported Not Supported
Storage class: auto,
extern
Supported Supported Not Supported
Destructors
No Constructor or
Destructor
Supported Not Supported
Database Connectivity Not Supported Not Supported Supported
Thank you

More Related Content

What's hot (20)

PPTX
Introduction to Object Oriented Programming
Moutaz Haddara
 
PPTX
Operators in java
Then Murugeshwari
 
PPTX
Python-Inheritance.pptx
Karudaiyar Ganapathy
 
PPTX
Method overloading
Lovely Professional University
 
PPTX
Java
Tony Nguyen
 
PDF
java ppt.pdf
PriyaMaurya52
 
PPTX
Threads in JAVA
Haldia Institute of Technology
 
PPTX
Unit 1-uses for scripting languages,web scripting
sana mateen
 
PPT
Basics of C programming
avikdhupar
 
PPTX
Storage class in C Language
Nitesh Kumar Pandey
 
PPTX
Compiler Design Introduction
Thapar Institute
 
PPT
Java Presentation
pm2214
 
PPTX
Function in C program
Nurul Zakiah Zamri Tan
 
PPTX
Yacc
BBDITM LUCKNOW
 
PDF
Introduction to python programming
Srinivas Narasegouda
 
PPTX
oops concept in java | object oriented programming in java
CPD INDIA
 
PDF
Introduction to Java Programming Language
jaimefrozr
 
PDF
2- THE CHANGING NATURE OF SOFTWARE.pdf
bcanawakadalcollege
 
PPTX
JRE , JDK and platform independent nature of JAVA
Mehak Tawakley
 
PPTX
A Role of Lexical Analyzer
Archana Gopinath
 
Introduction to Object Oriented Programming
Moutaz Haddara
 
Operators in java
Then Murugeshwari
 
Python-Inheritance.pptx
Karudaiyar Ganapathy
 
Method overloading
Lovely Professional University
 
java ppt.pdf
PriyaMaurya52
 
Unit 1-uses for scripting languages,web scripting
sana mateen
 
Basics of C programming
avikdhupar
 
Storage class in C Language
Nitesh Kumar Pandey
 
Compiler Design Introduction
Thapar Institute
 
Java Presentation
pm2214
 
Function in C program
Nurul Zakiah Zamri Tan
 
Introduction to python programming
Srinivas Narasegouda
 
oops concept in java | object oriented programming in java
CPD INDIA
 
Introduction to Java Programming Language
jaimefrozr
 
2- THE CHANGING NATURE OF SOFTWARE.pdf
bcanawakadalcollege
 
JRE , JDK and platform independent nature of JAVA
Mehak Tawakley
 
A Role of Lexical Analyzer
Archana Gopinath
 

Similar to Difference between c, c++ and java (20)

PPTX
JAVA was developed by Sun Microsystems in 1991
ArunKumarPandey43
 
PPTX
c vs java (2).pptx
AmitSingh770691
 
PPTX
C vs JAVA.pptx
AmitSingh770691
 
PPTX
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
jatin batra
 
PPTX
Java Introduction
sunmitraeducation
 
PPT
01intro
Waheed Warraich
 
PPT
Java ppt-class_basic data types methods definitions
ganeshkarthy
 
PPTX
C++ vs java which is best for future
calltutors
 
PPT
Introduction to java new
Gursimranjot singh dhiman
 
PPT
Introduction to java new
Gursimranjot singh dhiman
 
PPT
Java ppt-class_Introduction_class_Objects.ppt
VGaneshKarthikeyan
 
PPT
GETTING STARTED WITH JAVA(beginner)
HarshithaAllu
 
PDF
Object Oriented Programming slides that can help students
vincentngong2
 
PPTX
Java. converted (2)
AVINASHMEHRA6
 
DOCX
java introduction.docx
vikasbagra9887
 
PDF
What is the differnce between C++ and java programming?
maxnegi333
 
PDF
C++ vs Java: Which one is the best?
calltutors
 
DOC
Introduction to C Programming - TCCI.doc
TCCI Computer Coaching
 
PPTX
Java Programming vs C++_ An Informative Comparison.pptx
TurboAnchor
 
PPT
PPS Java Overview Unit I.ppt
CDSukte
 
JAVA was developed by Sun Microsystems in 1991
ArunKumarPandey43
 
c vs java (2).pptx
AmitSingh770691
 
C vs JAVA.pptx
AmitSingh770691
 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
jatin batra
 
Java Introduction
sunmitraeducation
 
Java ppt-class_basic data types methods definitions
ganeshkarthy
 
C++ vs java which is best for future
calltutors
 
Introduction to java new
Gursimranjot singh dhiman
 
Introduction to java new
Gursimranjot singh dhiman
 
Java ppt-class_Introduction_class_Objects.ppt
VGaneshKarthikeyan
 
GETTING STARTED WITH JAVA(beginner)
HarshithaAllu
 
Object Oriented Programming slides that can help students
vincentngong2
 
Java. converted (2)
AVINASHMEHRA6
 
java introduction.docx
vikasbagra9887
 
What is the differnce between C++ and java programming?
maxnegi333
 
C++ vs Java: Which one is the best?
calltutors
 
Introduction to C Programming - TCCI.doc
TCCI Computer Coaching
 
Java Programming vs C++_ An Informative Comparison.pptx
TurboAnchor
 
PPS Java Overview Unit I.ppt
CDSukte
 
Ad

Recently uploaded (20)

PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
Geographical diversity of India short notes by sandeep swamy
Sandeep Swamy
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
PDF
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Geographical diversity of India short notes by sandeep swamy
Sandeep Swamy
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Controller Request and Response in Odoo18
Celine George
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
Ad

Difference between c, c++ and java

  • 1. Bharathiar University Re - Accredited by NAAC with “A” Grade - Awarded 14 Rank by MHRD - NIRF, Govt. of India. Difference between C, C++ and JAVA N.MOHANASUNDARAM II - MCA (Reg. No. 15CSEA52) DEPARTMENT OF COMPUTER APPLICATIONS SCHOOL OF COMPUTER SCIENCE AND ENGINEERING BHARATHIAR UNIVERSITY COIMBATORE - 641046 TAMILNADU
  • 2.  What is the C language? C is a high-level and general purpose programming language that is ideal for developing firmware or portable applications. Originally intended for writing system software, C was developed at Bell Labs by Dennis Ritchie for the Unix Operating System (OS) in the early 1970s.  What is the C++ language? C++ is a general-purpose object-oriented programming (OOP) language, developed by Bjarne Stroustrup, and is an extension of the C language. It is therefore possible to code C++ in a "C style" or "object-oriented style." C++ is considered to be an intermediate-level language, as it encapsulates both high- and low-level language features. Initially, the language was called "C with classes" as it had all the properties of the C language with an additional concept of "classes." However, it was renamed C++ in 1983.  What is the Java language? Java is a general purpose, high-level programming language developed by Sun Microsystems. The Java programming language was developed by a small team of engineers, known as the Green Team, who initiated the language in 1991. The language was originally called OAK, and at the time it was designed for handheld devices and set-top boxes. Oak was unsuccessful and in 1995 Sun changed the name to Java and modified the language to take advantage of the burgeoning World Wide Web. Later, in 2009, Oracle Corporation acquired Sun Microsystems and took ownership of two key Sun software assets: Java and Solaris.
  • 3. Difference between C, C++ and Java: Aspects C C++ Java Developed Year 1972 1979 1991 Developed By Dennis Ritchie Bjarne Stroustrup James Gosling Successor of BCPL C C(Syntax) & C++ (Structure) Paradigms Procedural Object Oriented Object Oriented Platform Dependency Dependent Dependent Independent Keywords 32 63 50 defined (goto, const unusable) Datatypes : union, structure Supported Supported Not Supported Pre-processor directives Supported (#include, #define) Supported (#include, #define) Not Supported Header files Supported Supported Use Packages (import) Inheritance No Inheritance Supported Multiple Inheritance not Supported Overloading No Overloading Supported Operator Overloading not Supported Pointers Supported Supported No Pointers Code Translation Compiled Compiled Interpreted Storage Allocation Uses malloc, calloc Uses new , delete uses garbage collector Multi-threading and Interfaces Not Supported Not Supported Supported Exception Handling No Exception handling Supported Supported Templates Not Supported Supported Not Supported Storage class: auto, extern Supported Supported Not Supported Destructors No Constructor or Destructor Supported Not Supported Database Connectivity Not Supported Not Supported Supported