#1
3rd January 2011, 01:24 PM
|
|||
|
|||
Difference between C, C++ and JAVA?
difference between c c++ and java ? send me as soon as possible i m going to attend an interview day after tommorrow
|
#2
11th July 2011, 10:32 AM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
Quote:
difference that comes in between these three languages are given below. C is a structured language. This language is platform dependent. Platform dependent means you will not run any program of C from one operating system to another operating system. C++ is also platform dependent like C but this language is object oriented language. By object oriented language you can easily stop the flow of your program i.e from top to bottom or bottom to top.You can also say that in C++ we use classes and objects thats why it is object oriented. Java is object oriented like C++ but this programming language is not platform dependent. It is platform independent. This is because it generates byte code when you run your program not the exe file thats why it is platform independent. |
#3
11th July 2011, 12:34 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
Quote:
Difference between C++ and Java :-
|
#4
11th July 2011, 02:02 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
Difference Between C And C++ First we have to know about C and C++ C++,as the name suggests is a super set of C.As a matter of fact,C++ can run most of C code while C can not run C++ code. 1.C follows the procedural programming paradigm while C++ is a multi-Paradigm 2.In case of C,the data is not secured while the data is secured(hidden) in C++ 3.C is a Low-level Language While C++ is a middle-level language. 4.C uses the top-down approach while C++ uses the bottom-up approach 5.C is function-driven while C++ is object -driven 6.C++ supports function overloading while C does not 7.We can use functions in inside structures in C++ but bot in C. 8.The Standard input&output functions differ in the two languages that is C use scanf & printf while C++ uses cin>> & cout<< as their respective input and output functions 9.C++ allows reference variable while c does not Difference between C++ and Java C++ was mainly designed for systems programming and Java was created initially support network computing 1.C++ supports pointers where as Java does not pointers.Java support restricted pointers. 2.Java is platform independent language but C++ is depends upon operating system machine etc. 3.Java uses Compiler and interpreter both and in C++ their is only compiler 4.Thread support built in java but not C++ 5.Internet support is built in Java but not in C++ 6.There is no "goto" Statement in java 7.Java does not support unsigned Integer 8.Java support call by value only All the best for you |
#5
14th July 2011, 12:30 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
hiiiiiiiiiii..........
all the basic concepts are there in c. in c++ you can define data member out side a class. but in java you have to define the data members within the class. |
#7
19th August 2011, 10:16 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
Quote:
1.c language is a structured language and its a platform depend language.its mean that the executable code cant run on other operating system.c language also a very hard programming language as compare to c++ and java.this is the drawbacks of c language. 2.c++ is a object oriented language.its also a platform dependent language.and the executable code could'nt be run on other oprating system.c++ is easier as compare to c language. 3.java is a purly object oriented language and its the easiest as compare to others.java is a platform independent language. i hope u get ur answer. ##amaan## |
#10
30th August 2011, 09:16 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
JAVA IS NOT LIKE C BUT THE MAJOR DIFFERENCE BETWEEN JAVA AND C IS AS FOLLOWS:-
• JAVA IS COMPLETE OBJECT ORIENTED LANGUAGE AND HAS MECHANISM TO DEFINE CLASSES AND OBJECTS.WHERAS C DOESN’T . • JAVA DOES NOT SUPPORT AN EXPLICIT POINTER TYPE AS IN C++. • JAVA ADDS LABELLED “BREAK” AND “CONTINUE” STATEMENTS WHERAS C DOES NOT. • JAVA ADDS NEW OPERATORS SUCH AS ‘INSTANCEOF’ AND ‘>>>’ WHERAS C DOES NOT. • JAVA DOES NOT SUPPORT ANY MECHANISM FOR DEFINING VARIABLE ARGUMENTS TO FUNCTIONS. The major difference between java and c++ is as follows:- • IN C++ PRESENCE OF POINTER, REFERENCING AND DEREFERENCING OPERATOR WHILE ABSENCE OF POINTER AND THESE OPERATORS ON JAVA. • IN C++, CHARACTER TAKE 1 BYTE AND SUPPORTS ASCII CHARACTER WHILE IN JAVA CHARACTER SUPPORTS 2 BYTES AND SUPPORTS UNICODE. • IN C++, CLASS SPECIFIER IS TERMINATED BY ‘; ‘ WHERAS IN JAVA CLASS SPECIFIER ARE NOT TERMINATED BY’;’ • IN C++, NO CONCEPT OF MULTITHREADING WHERAS IN JAVA PRESENCE OF MULTI THREADING. • C++ SUPPORTS OPERATOR OVARLOADING WHERAS JAVA,SUPPORTS OPERATOR OVERLOADING. • JAVA DOES NOT HAVE TEMPLATE CLASSES AS IN C++. • THERE IS NO HEADER FILES IN JAVA AS IN C++. • C++ SUPPORTS MULTIPLE INHERITANCE WHERAS JAVA DOESN’T SUPPORT IT.IN JAVA THIS IS ACCOMPLISHED USING A NEW FEATURE CALLED “INTERFACE”. GOOD LUCK… |
#11
31st August 2011, 01:52 AM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
Difference between c and c++:
There are a lot of differences between the two...some of these are as follows ..... 1)C is a procedural language whereas C++ is an object oriented language. 2)C++ have exception handling mechanism , C does not have. 3)C has stdio.h header for I/O, C++ has iostream.h for I/O. 4)C++ supports inheritance, polymorphism, encapsulation. 5)C has classes in which default is private whereas C has structure where default is public. 6)C++ has templates. 7)C++ supports run time polymorphism. Difference between c++ and Java: Although both are object oriented programming language and Java was derived from C++ but still there is big difference between these two languages. You can see the actual difference once you start programming on it. But here i am going to give you few differences between these two... 1. Java does not support operator overloading 2. A class definition in Java looks similar to a class definition in C++, but there is no closing semicolon. 3. Forward reference declarations are not required in Java. 4. Scope resolution operator (: required in C++ is but not in Java. 5. In C++ you have to re-declare static data members outside the class but such things are not required in Java etc... Difference between c and java: 1)Java doesn't include the c unique statement keywords size of and typedef 2)Java doesn't contain the Datatype struct and union 3)Java doesn't defined the type modifiers keywords auto,extern,register,signed and unsigned. 4)Java doesn't support an Explicit Pointer type. 5)Java doesn't have a Pre-Processor(i.e #define,#include,#if def) 6)Java requires that the functions with no argument s must be declared empty paranthesis and not with the void keyword in C |
#12
31st August 2011, 01:06 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
Dear
c and c++ are the programming languages . C is structure language and the c++ is the object oriented language by which we can design various programs the java is the independent language and this language is run on designing the coding for that programme |
#13
3rd September 2011, 04:13 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
In c you donot have user defined functions but you have them in c+,java..
c doesnot support inheritance.. but java,c++ supports inheritance.. c doesnot have objects and classes but java,c++ has both.. java supports dynamic windows which is not supported by both c and c++ |
#14
10th September 2011, 08:24 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
dear friend
c is a structured language, it has no any property of the object oriented programming. it is a platform dependent language. c++ is an object oriented language, it has the characteristics of the inheritance encapsulation, polymorphism, etc. it use class and object for execute the program. java is a world wide language it is a platform independent language, this generate a byte code after compiling the source code. it has also the characteristics of the object oriented languages. |
#15
22nd September 2011, 10:49 PM
|
|||
|
|||
Re: Difference between C, C and JAVA?
C supports inheritance, polymorphism, encapsulation.
C has classes in which default is private whereas C has structure where default is public. C has templates. C supports run time polymorphism. java is a purly object oriented language and its the easiest as compare to others.java is a platform independent language. java includes two type of programs,one is application and another one applets |
#16
22nd September 2011, 10:56 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
java is a purly object oriented language and its the easiest as compare to others.java is a platform independent language.there are two types of programs used here one is application and another Applets
Source: http://entrance-exam.net/forum/general-discussion/difference-between-c-c-java-67115.html#ixzz1Yh8w9kRE |
#17
22nd September 2011, 10:58 PM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
java is a purly object oriented language and its the easiest as compare to others.java is a platform independent language.there are two types of programs used here one is application and another Applets
|
#23
27th March 2012, 04:25 AM
|
|||
|
|||
Re: Difference between C, C++ and JAVA?
Quote:
|
|