#1  
18th June 2011, 08:04 PM
r sreenu
 
Join Date: Jun 2011
Posts: 1

Main difference between C, C++, Java in?


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




  #2  
12th July 2011, 03:09 PM
sumansin
Senior Member+++++
 
Join Date: Mar 2011
Location: UP
Posts: 4,211
Default 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.
  #3  
21st July 2011, 10:21 AM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

i have c and c and java more difference
  #4  
1st August 2011, 10:53 AM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

difference between c and c and java
Reply With Quote
  #5  
11th August 2011, 04:20 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

difference between c and c and java
Reply With Quote
Reply With Quote
  #6  
11th August 2011, 11:17 PM
venkataprakash.v
Senior Member+++++
 
Join Date: Dec 2010
Location: chennai.
Posts: 4,121
Default 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.
Reply With Quote
  #7  
13th August 2011, 07:44 PM
Bmsri
Senior Member
 
Join Date: Aug 2011
Posts: 327
Default 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++.
Reply With Quote
  #8  
13th August 2011, 10:55 PM
ashok880
Senior Member++++
 
Join Date: Sep 2010
Posts: 2,571
Default 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)
Reply With Quote
  #9  
19th August 2011, 06:16 PM
amaan khan ak
 
Join Date: Aug 2011
Location: bikaner
Posts: 579
Default 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
Reply With Quote
  #10  
23rd August 2011, 03:56 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

what is procedural and object oriented programming language?
Reply With Quote
  #11  
12th September 2011, 11:11 AM
manoj rajpurohit
Junior Member
 
Join Date: Feb 2011
Location: Bikaner
Posts: 352
Default 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.
Reply With Quote
  #12  
25th September 2011, 09:07 PM
Unregistered
Guest
 
Posts: n/a
Default 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.
Reply With Quote
  #13  
2nd October 2011, 02:45 PM
BISWARUPYOGI
Senior Member+++++
 
Join Date: May 2011
Location: India
Posts: 38,947
Default 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
Reply With Quote
  #14  
4th November 2011, 01:39 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

difference between pure object oriented programming and object oriented programming language
Reply With Quote
  #15  
4th November 2011, 01:43 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

difference between object oriented and pure object oriented programming language
Reply With Quote
  #16  
17th December 2011, 05:08 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

Why we not use Integer instead of String in java...........
plz reply/
Reply With Quote
  #17  
5th February 2012, 08:59 AM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

i want to know full major and minor difference between java,c and c
Reply With Quote
  #18  
25th October 2012, 07:46 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

what are c is pre processor language.c declare the signed and unsigned type?
Reply With Quote
  #19  
20th February 2013, 06:28 PM
Unregistered
Guest
 
Posts: n/a
Default Re: Main difference between C, C , Java in?

difference between c and java
Reply With Quote
  #20  
17th June 2023, 05:59 PM
Nikhil202k
Banned
 
Join Date: Feb 2012
Posts: 686
Default 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.
Reply With Quote
Do you have any question? or have anything to say?





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