Popular Posts

Differences Between C, C++ and Java

Basic differences between programming languages C, C++ and Java?

c language:
1.It is structured programming.
2.Follows top down approach.
3.The entire problem is divided as functions and procedures.
4.Main features are pointers,preprocessor.

c++:
1.It is a object oriented programming.
2.Follows an bottom to top approach.
3.Entire problem is divided as objects.
4.It is improved version of c language.
5.Main features are pointers,class.

Java:
1.It is a object orienter programming but not 100%.
2.It is a platform independent language.
3.It will not support for pointers.
4.Main features are multi threading,interfaces.

What are the basic differences between Programming languages C, C++ and Java?

All programming languages are quite similar but some difference are present in c,c++ and java language.

The first language which introduced is c language.C language is very good language.The C language is a structured language and its a top down approach.C language is a plateform dependent language.It means you cant run the execute code in any other processor,system.Its the main disadvantage of c languge.

The second one is C++ language and it is the advance version of c language. C++ language is also a platform dependent language thats why we can run the executable code in other operating system. So it also have a disadvantage. C++ language is a object oriented language and also there is no  use of pointers which is neccessary in c language.

The next language is java language.Its the best language at present in market. Many company do their work with the help of java language.Java is a very  simple.robust,Purely object oriented,portable language.  Java is a plateform independent language.Java uses syntax of c language and  methods of C++ language.

3. Difference between C and Java:
1. C is a structure oriented program.
2. Java does not support explicit pointer type.
3. Java requires that the functions with number arguments must be declared empty paranthesis and not with the void keyword in C.
4. Java does not define the type modifiers keywords auto,extern,register,signed & unsigned.
4. Difference between C++ and Java:
1. C++ is object oriented program.
2. Java is a purely object oriented program
3. Java does not support Global variables
4. Java does not use the pointers
5. Java does not support operator overloading
6. Java does not template classes as in C++.
7. Java has replaced the destructor function with a finalize function.
8. Java does not support multiple Inheritance. 


C,C++ and Java all these are languages.
C is a middle level language because it stands in between High level languge and Low level language.Programs written in C are efficient and fast.It is used in structured programming.

C++ is derived from the C language.C++ uses compile-time binding which means that the programmer must specify the specific class of an object.C++ programs are fast and efficient, qualities which helped to make C an extremely popular programming language.

Java is an object oriented language built upon C and C++.It drives its syntax from C and its object oriented features are influenced by C++.It can be used to create application and applets.

Major difference between C, C++ and Java?

Similarities in C are:
1. Structured programming in C 
2.Top-down Approach
3. Very Difficult to program and it is very code of program for the applications.


C++ and Java
1. Both are object oriented programming
2. C++ is developed from c programming
3. Inheritance,Encapsulation,Constructors can be used due to object oriented programming.
4. Java main functionality is Platform Independence, Digital Signatures can be used.

These are the similarities and dissimilarities in C, C++ and Java.

Pages