What is the difference between java and c and c++?

Showing Answers 1 - 8 of 8 Answers

Kumarakuru

  • Feb 10th, 2006
 

Java does not support Pointers, C++ support pointers.

Java does not support structures and unions as C++.

In C, code is organized into functions, which are global subroutines accessible to a program. C++ added classes and in doing so provided class methods, which are functions that are connected to classes. Java has no functions.

Multiple inheritance is a feature of C++ that allows you to derive a class from multiple parent classes. Java takes the high road and provides no direct support for multiple inheritance. You can implement functionality similar to multiple inheritance by using interfaces in Java

 

Supraja

suma

  • Feb 13th, 2006
 

C is a language specially ment for system developement programs like writing the code for searching a group of files when a floppy is loaded. Where as a JAVA is not only a programming language but also a technology,a library etc..It is specially ment for enterprise applications. Looking into details C is structured programming language where as JAVA implements OOPSconcepts i.e., object oriented programming. But even though C++ supoorts this concepts the implementation is different. JAVA doesn't supports pointers directly but indirectly through reference variables. Reading & writing into console finds some difficulty for a new programmer where as it is not in case of C r C++.

  Was this answer useful?  Yes

ravi

  • Feb 23rd, 2006
 

java is purely object oriented language,& c is procedure oriented language.c++ is also object oriented language but it is not a truly oop.java provide many facilities rather than c/c++. 

  Was this answer useful?  Yes

Ashish A

  • Feb 23rd, 2006
 

Sorry, but a small correction !!!

java is not a pure object oriented language. It is a so called a "Hybrid" language like C++. The primary reason for this is that java supports primitive types which are not objects.

  Was this answer useful?  Yes

Anand Awasthi

  • Mar 3rd, 2006
 

hi all,

c is the Structure Programming Language while C++ is the object oriented programming.

c included macro keywords while c++ && java doesn't.

Java does include pointer(here we used references place of pointer)

while c++ included pointer for memory allocation.

java included automatically Garbage collector while c++ does n't

java doesn't  included delete keywords while c++ included.

i hope u will be understand these things.

bye

Anand India

arnab21

  • Mar 27th, 2006
 

java is a object oriented programming language which is supported by JVM,which make this language platfrom free. but in C or C++ there has no such facility.Java can b used in many appliences too..but other languages cann't b.

C is a language which is mainly used to write Scientific programs.so this is a procedural language.This language was developed using lots of  Macros.where as Java and C++ is not MAcro oriented.

C++ is a language which splits a program into several modules.It is a Object oriented Programming language.
 

  Was this answer useful?  Yes

miggu

  • Apr 7th, 2006
 

difference between java,C++ & C

java doesn,t supports pointers but C++ supports

java doesn,t supports structures and unions but C++ supports.

C is a procedural based language but java and C++ are object-oriented language .

C doesn,t supports classes and objects but java and C++ supports.

  Was this answer useful?  Yes

satheesh kumar. sriramaneni

  • May 10th, 2006
 

In Java, the JVM will allocate memory to the object.So, it's a platform independent. In C/C++ ,the OS will allocate memory to the object.So, it's a platform dependent.

Java is a Robust language, Means Exception handling can be working here in efficient manner than C/C++.So, C/C++ is not  a Robust language.

In java, we can create dynamic web / enterprise applications (and validations also for that pages) in an easier manner.But in C/C++ ,also there is a chance,but it is not in easier manner.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions