#1  
25th July 2011, 09:16 PM
Unregistered
Guest
 
Posts: n/a

Difference between Java, C++ and C Language?


Could u please mention to me the difference between java,c++ and c language




  #2  
9th August 2011, 01:03 AM
BISWARUPYOGI
Senior Member+++++
 
Join Date: May 2011
Location: India
Posts: 38,947
Default Re: Difference between Java, C++ and C Language?

Quote:
Originally Posted by Unregistered View Post
Could u please mention to me the difference between java,c++ and c language
dear friend,

I think the main difference between C or C++ and Java in Object-oriented. In Language C or C++, we can extend one more classes.

There are many problems from the method of extending, like the sequence of initializing the class before using it and the sequence of destroying the class. It's very hard for the beginner.

So Java doesn't allow extending from more one class. On the other side , there is the same in C++ and Java.

C is a procedure oriented language .

C++ is c with object oriented language.

Java is truely object oriented.

thanks
  #3  
18th August 2011, 04:56 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Difference between Java, C and C Language?

what is the difference between programme,subprogramme,module?
  #4  
18th August 2011, 10:14 PM
ashok880
Senior Member++++
 
Join Date: Sep 2010
Posts: 2,571
Default Re: Difference between Java, C++ and C Language?

Difference between C and C++:

C++ is an extension of C language. This means that you can not only use the new features introduced with C++ but can also use the power and efficiency of C language. C and C++ are no more language for writing compilers and other languages, these general purpose languages are used worldwide in every field.
Here is a list of differences between c and c++.

The main difference between C and C++ is that C++ is object oriented while C is function or procedure oriented. Object oriented programming paradigm is focused on writing programs that are more readable and maintainable. It also helps the reuse of code by packaging a group of similar objects or using the concept of component programming model. It helps thinking in a logical way by using the concept of real world concepts of objects, inheritance and polymorphism. It should be noted that there are also some drawbacks of such features. For example using polymorphism in a program can slow down the performance of that program.

On the other hand, functional and procedural programming focus primarily on the actions and events, and the programming model focuses on the logical assertions that trigger execution of program code.

Difference Between C++ and Java:

The main difference between C++ and Java is that,the feature present is C++ will not work in Java.
Example
  • Pointers
  • Templates
Difference Between C and Java:


Java is also object-oriented, whereas C is not. Java allows a user to create classes that contain data and methods. C is not capable of doing that.

Reply With Quote
  #5  
18th August 2011, 10:51 PM
amaan khan ak
 
Join Date: Aug 2011
Location: bikaner
Posts: 579
Default Re: Difference between Java, C and C Language?

Quote:
Originally Posted by Unregistered View Post
what is the difference between programme,subprogramme,module?
the first language introduced is c language.after that c++ language is introduced.c++ and java is a object oriented language.the main drawbacks of c and c++ languages are they are not portable and the executable code doesnt run on other operating system so sun microsoft has devolop java language which is portable robust easy.
java also used syntax of c language and java used object oriented property of c++.
c++ and java used almost same properties of object oriented principle.
Reply With Quote
  #6  
18th August 2011, 11:10 PM
balafederer
Senior Member+
 
Join Date: Jul 2011
Posts: 813
Default Re: Difference between Java, C++ and C Language?

Hello,

C is a structure oriented program
C++ is a object oriented program
Java is a purely object oriented program

Difference between C++ and Java:

1. Java doesn't support operator overloading
2. Java doesn't template classes as in c++
3. Java doesn't support multiple inheritance
4. Java doesn't support Global pointers
5. Java doesn't support pointers
6. Java has replaced the destructor function with a finalize function.

Difference between C and C++:

1. C is a top down approach and c++ is a bottom up approach.
2. C does not support overloading but C++ supports
3. C++ support classes but c does not support it.

Difference between C and Java:

1. Java doesn't include the C language the c unique statement keyword size of 'type def'
2. Java does not support an explicit pointer type
3. Java does not the data type struct and union.
4. Java does not have a pre processor

Best wishes
Reply With Quote
  #7  
19th August 2011, 12:18 AM
nitz90
Senior Member+++++
 
Join Date: Aug 2011
Location: new delhi
Posts: 3,256
Smile Re: Difference between Java, C++ and C Language?

Quote:
Originally Posted by Unregistered View Post
Could u please mention to me the difference between java,c++ and c language


C and C++ are almost same..its just that C++ has a slightly different syntax than C and has overcome most of the shortcomings of C..
whereas JAVA is a totally different language of computer..

hope this helps..
Reply With Quote
  #8  
19th August 2011, 02:48 AM
pk827
 
Join Date: Apr 2011
Posts: 63
Default Re: Difference between Java, C++ and C Language?

There is so much difference B/w C, C++ and Java.

C is called mother of C++ & Java. The C language was developed for earlier Computing programming, but then there was so much Difficulty in C.
There was nothing like Inheritence. so because of that, if we want to use an existing code in any another program, we have to write whole code again, which surly takes a lot of time and also consumes so much memory.

so, to Overcome this problem, C++ was developed. C++ was developed with the technology, which was not available in C language.

The main Funda of the C++ is Object Orientation. funda of Class & Objet is used. Now, one class can be inherited in another program without retyping the whole code. we have to just Inherit that class, whose propetied we want to use.

But, still there was problem with C++, that it was plateform Dependent. the applications, written in C++ can run only on Window's OS n also there was lake of Security. Graphics problem is also arised.

So, now to Overcome from these problem's Java was Invented. As, at this time, when Java was invented, people were Familiar with C & C++, so by keeping those in mind, Java was created by inheriting C & C++ properties.
now, Java derives its Syntax from C & Object Oriented properties from C++.
Security is also implemented in Java. n also GUI applications are now possible to implement, which was not possible with C & C++....

so this was the Basic Funda behind Invention of Various Languages n also can be taken as Difference b/w C, C++ & Java.


I hope, it wud help U, n also ur confusion about creation of these languages is solved.

Gud luck...
Reply With Quote
  #9  
19th August 2011, 04:22 AM
pk827
 
Join Date: Apr 2011
Posts: 63
Default Re: Difference between Java, C and C Language?

Quote:
Originally Posted by Unregistered View Post
what is the difference between programme,subprogramme,module?
Program : program is a set of instruction, which are executed to solve a particular problem.

Sub-Program : sub-program can be taken as Function. A function is a form of Sub-program.

Module : when large projects are created, project is divided into small parts n then each part is assigned to a team. this small part of a large project is itself a program, which has its own work n independent fro each other at this time. this small part of a large project is called Module.
when all modules are designed and tested independently, they all are reconstructed or integrated to fullfill the requirement of Project. now at this stage, these modules, depends on other modules of the same project as they are integrated now.
Reply With Quote
  #10  
19th August 2011, 08:08 AM
Sehwag6
Senior Member
 
Join Date: Jul 2011
Posts: 490
Default Re: Difference between Java, C++ and C Language?

c:-

**it is computer language .

**it is introduced in 1972 by dennis ritchie at bell laboraties

**it is a structure oriented language

**it is case sensitive

c++ and java:-

**both are object oriented languages

**it is the advancement of c language

**some features add to the c and then get c++

**it is introduced in 1980

**it has extra special concepts
Reply With Quote
  #11  
19th August 2011, 03:35 PM
BEST CAREER
Member+
 
Join Date: Sep 2010
Posts: 649
Default Re: Difference between Java, C++ and C Language?

C is the basic programming language and the program is made of the combination of the structure .
It is easy to construct simple and medium sized program very easily and efficiently

C++ is object oriented programming language anf the program is made from the combination of different clasees
C++ is advanced version of C programming ,it rectifies the defect in the C programming .

JAVA is a combination of the both c and c++
and is used now a days for programming .
Itz is very much efficient when compared to Cand C ++
Attached Files
File Type: pdf jccpprtTR.pdf(160.7 KB, 286 views)
Reply With Quote
  #12  
19th August 2011, 10:54 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Difference between Java, C and C Language?

In c we can use #include but in java we use import y
Reply With Quote
  #13  
19th August 2011, 11:34 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Difference between Java, C++ and C Language?

Quote:
Originally Posted by Unregistered View Post
Could u please mention to me the difference between java,c++ and c language
the basic diff in these three is that c is procesured programming language and c++ is the object oriented programming lan........and java is the language which combine both c & c++ tokens and also the basic includement of the data structures in wide sense...
Reply With Quote
  #14  
12th September 2011, 10:51 PM
manoj rajpurohit
Junior Member
 
Join Date: Feb 2011
Location: Bikaner
Posts: 352
Default Re: Difference between Java, C++ and C Language?

c is a structured language, it is also a procedural language. it contain all the datatype and the pointers for holding and assigning the memory to the variables.
c has no any class and the object.

c++ is a object oriented language, it has bottom to down approach. it follow all the characteristics of the OOP language like inheritance, encapsulation, polymorphism.

java is a pure OOP language, it has all the characteristics of the OOP like the c++, it is the best language in the world in now a days., it consists a byte code which is portable file and can run on any platform.
Reply With Quote
  #15  
5th October 2011, 01:51 AM
njsingh15
Senior Member
 
Join Date: Sep 2011
Posts: 415
Default Re: Difference between Java, C++ and C Language?

Quote:
Originally Posted by Unregistered View Post
Could u please mention to me the difference between java,c++ and c language
1)There are two types of complex data types in C: structures and unions.
C++ adds classes to this list.
and Java only implements one of these data types: classes

2)C has no built-in string data type. The standard technique adopted among C
programmers is that of using null-terminated arrays of characters to represent
strings. This practice if often seen in C++ programs too.
Neither C++ or Java have string as a primitive type, but they do both have string objects that are a standard part of the language. In Java this type is called String, and in C++ it is called CString.
Reply With Quote
Do you have any question? or have anything to say?



Related Topics:

Thread Replies Last Post
Difference between CC MBA and Regular MBA? Which one is beneficial? Difference between LLM and LLB? 5 31st May 2023 10:46 PM
What is the academic difference between CBSE and ICSE board? Which board is easier to score? Any real difference in subjects from preparation stand point? 38 3rd February 2020 06:31 PM
Difference between Electronics and Communication Engineering and Electronics and Telecommunication Engineering? What is the scope of CSE now and after 4 years? 14 5th February 2014 11:50 PM
Difference between MBA and regular MBA? Which one is beneficial? Difference between LLB and LLM? 6 9th October 2013 05:36 PM
What is difference between Information Technology and Computer Science branch in Engineering? Difference between B.Tech and B.E? 24 13th August 2012 11:56 AM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Please also check: