Thread: Main difference between C, C++, Java in? Reply to Thread

Your Username: Click here to log in
Title:
  
Message:
Post Icons
You may choose an icon for your message from the following list:
 

Additional Options

Miscellaneous Options

Topic Review (Newest First)

17th June 2023 05:59 PM
Nikhil202k
Re: Main difference between C, C++, Java in?

The main differences between C, C++, and Java lie in their design philosophy, features, and areas of application. Here are some key distinctions:

Design Philosophy:

C: C is a procedural programming language that focuses on efficient code execution and low-level control. It provides direct access to memory and hardware, making it suitable for system programming and embedded systems.
C++: C++ is an extension of C that introduces object-oriented programming (OOP) concepts. It supports both procedural and object-oriented programming paradigms, enabling code reuse, modularity, and abstraction.
Java: Java is an object-oriented programming language designed with a "write once, run anywhere" philosophy. It emphasizes platform independence, security, and simplicity. Java code is compiled into bytecode that runs on the Java Virtual Machine (JVM).
Object-Oriented Programming (OOP) Support:

C: C does not have built-in support for OOP. It primarily focuses on procedural programming and provides limited support for data abstraction through structures.
C++: C++ is known for its strong support for OOP. It introduces classes, objects, inheritance, polymorphism, and other OOP concepts. C++ allows developers to write modular, reusable, and maintainable code.
Java: Java is a fully object-oriented language, with everything being an object. It enforces OOP principles and provides features such as classes, objects, inheritance, polymorphism, and interfaces.
Memory Management:

C: In C, memory management is primarily manual. Developers must explicitly allocate and deallocate memory using functions like malloc() and free(). This flexibility allows for precise memory control but can lead to memory leaks and errors if not managed carefully.
C++: C++ supports manual memory management like C, but it also introduces automatic memory management through the concept of destructors and the RAII (Resource Acquisition Is Initialization) principle. C++ also provides the new and delete operators for dynamic memory allocation and deallocation.
Java: Java uses automatic memory management through garbage collection. The JVM automatically manages memory allocation and deallocation, freeing developers from explicit memory management. Java handles memory deallocation by reclaiming unused objects through garbage collection.
Exception Handling:

C: C has limited built-in support for exception handling. Error handling is typically achieved through return codes or custom error-handling mechanisms implemented by the programmer.
C++: C++ supports robust exception handling with try-catch blocks. Exceptions can be thrown and caught to handle errors and exceptional situations gracefully.
Java: Java has comprehensive built-in exception handling mechanisms. It provides a structured approach to handle exceptions using try-catch-finally blocks, allowing developers to catch and handle specific types of exceptions.
Runtime Environment and Portability:

C: C programs are typically compiled into machine code specific to the target platform. The resulting executable runs directly on the hardware, making it highly efficient but less portable.
C++: C++ programs are also compiled into machine code. They can be highly efficient and offer good portability across different platforms, but they may require recompilation for each target system.
Java: Java programs are compiled into bytecode that runs on the Java Virtual Machine (JVM). This bytecode makes Java highly portable, as it can be executed on any system with a compatible JVM, adhering to the "write once, run anywhere" principle.
20th February 2013 06:28 PM
Unregistered
Re: Main difference between C, C , Java in?

difference between c and java
25th October 2012 07:46 PM
Unregistered
Re: Main difference between C, C , Java in?

what are c is pre processor language.c declare the signed and unsigned type?
5th February 2012 08:59 AM
Unregistered
Re: Main difference between C, C , Java in?

i want to know full major and minor difference between java,c and c
17th December 2011 05:08 PM
Unregistered
Re: Main difference between C, C , Java in?

Why we not use Integer instead of String in java...........
plz reply/
4th November 2011 01:43 PM
Unregistered
Re: Main difference between C, C , Java in?

difference between object oriented and pure object oriented programming language
4th November 2011 01:39 PM
Unregistered
Re: Main difference between C, C , Java in?

difference between pure object oriented programming and object oriented programming language
2nd October 2011 02:45 PM
BISWARUPYOGI
Re: Main difference between C, C++, Java in?

Quote:
Originally Posted by r sreenu View Post
could u please tell me the main difference between c,c++,java in interveiw oriente?d
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
25th September 2011 09:07 PM
Unregistered
Re: Main difference between C, C , Java in?

difference between c,c & java
c only have early binding whereas c & java have both early binding & late binding.
12th September 2011 11:11 AM
manoj rajpurohit
Re: Main difference between C, C++, Java in?

java is a platform independent language, it is a robust bottom to up approach language.

java is a simple language, it generates a byte code which is responsible for the independency of the language.

c++ is a object oriented language, it is a bottom to up approach language,

c language is the base of all the programmining language. it the software student must study about the c language. it is a top to bottom approach language.

best of luck.
23rd August 2011 03:56 PM
Unregistered
Re: Main difference between C, C , Java in?

what is procedural and object oriented programming language?
19th August 2011 06:16 PM
amaan khan ak
Re: Main difference between C, C++, Java in?

Quote:
Originally Posted by r sreenu View Post
could u please tell me the main difference between c,c++,java in interveiw oriente?d
there is many simalirities and dissimilarities betweeen c,c++ and java
c is a structured language.its a top-down approach.c programming is hard as compare to c++ and java.its not based on the principle of object oriented method.
c++ and java are the object oriented languages.java is a pure object oriented language.java use c syntax and methods of c++.
as compare to difficulty,c is the hardest programming and java is the simplest programming.java is a very simple,robust,portable,platform independent language.
so some how there are some similarities and dissimilarities.
i hope u get ur answer.

regards
amaan
13th August 2011 10:55 PM
ashok880
Re: Main difference between C, C++, Java in?

C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept.

C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.

Although it is possible to implement anything which C++ could implement in C, C++ aids to standarize a way in which objects are created and managed, whereas the C programmer who implements the same system has alot of liberty on how to actually implement the internals, and style among programmers will vary alot on the design choices made.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then)
13th August 2011 07:44 PM
Bmsri
Re: Main difference between C, C++, Java in?

Quote:
Originally Posted by r sreenu View Post
could u please tell me the main difference between c,c++,java in interveiw oriente?d
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 and the program is made from the combination of different classes.c++ is advanced version of C programming,it rectifies the defect in the C programming.
java is a combination of both c and c++ and is used now a days for programming.Its is very much efficient when compared to C and C++.
11th August 2011 11:17 PM
venkataprakash.v
Re: Main difference between C, C++, Java in?

Quote:
Originally Posted by r sreenu View Post
could u please tell me the main difference between c,c++,java in interveiw oriente?d
Difference between C,C++ and Java.

This are the basic language for any programming language.

C is a structure oriented programming language.
C++ is a object oriented programming language.
java is a purely oriented programming language.

Difference between C and Java :-

Java doesn't include the c unique statement keywords and size of and typedef.

Java doesn't contain the Data types struct and Union.

Java doesn't defined the types of modifiers keywords signed,unsigned,auto,register and extern.

Java doesn't support the pointers type.

Difference between Java and C++ :-


Java does not use the pointers.

Java doesn't support global variables.

There are no header files in java.

Java doesn't support multiple inheritance.
11th August 2011 04:20 PM
Unregistered
Re: Main difference between C, C , Java in?

difference between c and c and java
Reply With Quote
1st August 2011 10:53 AM
Unregistered
Re: Main difference between C, C , Java in?

difference between c and c and java
21st July 2011 10:21 AM
Unregistered
Re: Main difference between C, C , Java in?

i have c and c and java more difference
12th July 2011 03:09 PM
sumansin
Re: Main difference between C, C++, Java in?

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.
18th June 2011 08:04 PM
r sreenu
Main difference between C, C++, Java in?

could u please tell me the main difference between c,c++,java in interveiw oriente?d

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise.