Introducing Java
page 3 of 5
by Debjani Mallick
Average Rating: 
Views (Total / Last 10 Days): 27748/ 53

Differences between Java, C, C++



Java does not support pointers, include statement like "goto" and "size of" statements.

C supports pointers, including statements like "goto" and "size of."

Java does not contain data types like structure and union.

C contains data types like structure and union.

Java does not use pre-processor directive like # include and # define.

C uses pre-processor directive like # include and # define.




Java does not support operator overloading.

C++ supports operator overloading.

Java does not support multiple inheritance.

C++ supports multiple inheritance.

Java does not support global variables.

C++ supports global variables.

View Entire Article

User Comments

Title: Correction   
Name: Amit
Date: 2011-11-09 6:58:49 AM
Bro u have to type properly.Its James Gosling not Games Gosling :)
Title: Beginners   
Name: Good Job
Date: 2010-11-30 1:29:11 AM
It is really a good article for the bignners.
Title: It's really very nice   
Name: Alka
Date: 2009-12-11 5:29:39 AM
Thanks for providing such an article.It's really great.....
Title: Good Article   
Name: Ranjan
Date: 2008-08-12 1:29:03 PM
I dont know about others and I really liked this article. It was very informative.
Title: dis is hard   
Name: cook
Date: 2008-08-12 6:26:42 AM
this is too hard and try to finish it
Title: more details should be there   
Name: Gururaj
Date: 2008-05-07 4:00:35 AM
For any begineer, this article is not good to start
Title: Why java doesnt support multiple inheritance?   
Name: Sujata Sachdev
Date: 2008-01-16 4:30:39 AM
Technically speaking, Java is a fool proof programming language. Every concept has been well understood before implementation.
Title: good job   
Name: Anuva
Date: 2007-06-29 3:44:46 AM
Nice article.Very useful for bigners!
Title: Reply for(samarendra swain) why Java does not include multiple inheritance   
Name: Debjani Mallick
Date: 2007-06-25 8:12:57 AM
Java was actually designed to be simple,familiar and object-oriented.To keep it simple and familiar, the language has been made as similar as possible to C++ but without including the unnecessary complexities of the C++ language like multiple inheritance which causes more problems and confusion than it solves.The avoidance of multiple inheritance from Java language is to avoid the "diamond" problem associated with implementation of multiple inheritance.The diamond probem is the ambiguity that arises when two classes B and C inherit from A and another class D is inherited gform both B and C.Now if a method in D calls a method defined in A,which class does it inherit via, B or C?To avoid this situation, multiple inheritance is avoided in Java.Instead we have Java implement multiple inheritance by using interfaces.
Title: Java for beginner   
Name: Arindam Parida
Date: 2007-06-25 5:20:15 AM
It is really a good article for beginners.
Title: java does not support multiple inheritance   
Name: samarendra swain
Date: 2007-06-25 3:22:05 AM
Thank u for article.i have a question that
why java does not support multiple inheritance?
i need the exact answers...i know that becz of complexity it doesn't support. still i wanna know the real deep answer.can u help me?
Title: Nice Article for the Beginners   
Name: Chandrakanta Kar
Date: 2007-06-25 3:03:32 AM
It will help for the peoples working in different Technology.
Title: good   
Name: asabdjs
Date: 2007-06-23 11:54:18 PM
nice one
Title: Abhinash   
Name: Good One
Date: 2007-06-22 1:47:19 PM
Its really great keep up the good work!
Title: Tim   
Name: good work
Date: 2007-06-22 12:37:36 PM
Keep up the good work
Title: Excellent   
Name: John
Date: 2007-06-20 12:26:44 PM
The article is just fabulous.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-02-22 3:51:06 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search