#1  
18th April 2011, 04:52 PM
Unregistered
Guest
 
Posts: n/a

Main difference between C and Java?


what are then main difference between c and java? can you please tell me the difference




  #2  
5th July 2011, 09:15 PM
vishal jaybhaye
Senior Member+
 
Join Date: Jun 2011
Location: nagpur
Posts: 725
Default Re: Main difference between C and Java?

c is the basic programming language .
after learning 'c' language you can be able to learn other specialized languages like c++ or java.

java is the specialized computer language.

thanks
  #3  
6th July 2011, 06:27 AM
princearyan
Senior Member+
 
Join Date: Feb 2010
Location: CHENNAI
Posts: 1,896
Default Re: Main difference between C and Java?

Yea i tell you in C basically C is a function oriented language ..
we use many function in C stdio.h,stdlib.h,math.h
in JAVA we use OBJECT ...this is object oriented programming language we use
inheritance ,polymorphism like property
this is basic difference if you want to learn more go for these books
LET US C by yashwant kanetkar
JAVA by E.Balagoswami
good luck
  #4  
11th July 2011, 01:49 PM
venkataprakash.v
Senior Member+++++
 
Join Date: Dec 2010
Location: chennai.
Posts: 4,121
Post Re: Main difference between C and Java?

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
Difference Between C and Java :-

Java doesn't include the C unique statement keywords sizeof and Typedef

Java doesn't contain the dataypes Struct and Union.

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

Java doesn't support an Explicit pointer type.

Java doesn't have a Pre-Processor (i.e #define,#include,# if def )

Java requires that the functions with no arguments must be declared empty Paranthesis and not with the void keyword in C.
Reply With Quote
  #5  
11th July 2011, 07:14 PM
naveen7777
Senior Member
 
Join Date: Apr 2011
Location: punjab
Posts: 325
Default Re: Main difference between C and Java?

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
Hello
the main difference
is
C is the branch of computer science.
and earlier form of C++ .it is the programming language used in many companies to secure data for longer period.
java programming is the branch of IT (infomatics technology)
used in small working offices like banks,schools.
Reply With Quote
  #6  
12th July 2011, 01:45 AM
BISWARUPYOGI
Senior Member+++++
 
Join Date: May 2011
Location: India
Posts: 38,947
Default Re: Main difference between C and Java?

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
difference between java and c:-

C uses concept of structures (not object oriented).
In C we use the concept of pointers whereas there are no pointers used in JAVA

ava was created for the purpose of making a language that could be implemented on many different types of computers (cell phone, mac, PC, linux, etc.) C on the other hand can only be run on a computer of the same type as the one that compiled the program.

One of the costs of this portability in Java is speed. On numerous benchmarks Java still lags behind C in terms of speed, but that gap is narrowing.

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
  #7  
12th July 2011, 04:42 PM
imira
Senior Member+++++
 
Join Date: May 2010
Posts: 15,774
Default Re: Main difference between C and Java?

C and java are two programming languages which are used extensively world wide. C is one of the primitive programming languages available. All modern programming languages are developed with the influence of C language. Java is one among the latest programming languages. It also has lots of influence from the C language. It is the common platform on which a majority of the IT companies work on nowadays.
Reply With Quote
  #8  
12th July 2011, 10:49 PM
rohitkumarramesh
Senior Member++++
 
Join Date: Jul 2010
Location: BIKANER
Posts: 2,266
Smile Re: Main difference between C and Java?

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
C language
C is the programming language like java and all. But the basic difference
in both of the languages is that C is a structural programming it means
you use structures in your C programs and also this is a platform dependent
language. It means you can't run a C program on other operating system.

Java Language
Java is a object oriented languages. In Java we use classes and objects
in our programs. Also Java is platform independent language. You can run
a java program in an operating system.

This is the major difference between Java and C.
Reply With Quote
  #9  
12th July 2011, 11:43 PM
mobeshpal
Senior Member+++++
 
Join Date: Mar 2011
Posts: 3,467
Default Re: Main difference between C and Java?

hi dear

main difference between C & java is :-

*Java is object oriented language while c is a procedural language.

*Java is a interpreted language while C is a compiled language

*C is a low level language while Java is a high level language

*C uses top down approach while Java uses bottom up approach

*Java supports method overloading while C does not support this.

this above is the basic difference between C & java.........
Reply With Quote
  #10  
13th July 2011, 12:39 AM
gauri2011
Senior Member+
 
Join Date: Jun 2011
Posts: 921
Default Re: Main difference between C and Java?

Dear Friend,

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
C and Java Both are high level languages.

The main difference between C and Java is that C is a structural Programming Language which is Procedure oriented where Java language is an Object oriented Programming Language.

In C language the stress is given to the function.On the other hand In Java language the stress in on the data rather than the functions.

C programs are not portable i.e. it can not run on every platform where Java language is portable i.e. it can run in any platform in any operating system in any environment.

Best wishes...
Reply With Quote
  #11  
13th July 2011, 02:29 AM
sumansin
Senior Member+++++
 
Join Date: Mar 2011
Location: UP
Posts: 4,211
Default Re: Main difference between C and Java?

C language is a collection of functions.its program based on structure.C is highly portable language.C programs can be run on any computer without any modification.

Java based upon objects.its a object oriented language.programs written in java analyse an application in terms of entities/objects.In this code and data merged into a single indivisible object
Reply With Quote
  #12  
13th July 2011, 02:49 AM
nambardar
Senior Member+
 
Join Date: Jul 2011
Location: bikaner
Posts: 881
Default Re: Main difference between C and Java?

The main difference between c and java is that C is a plateform dependent language and JAVA is the plqteform independent language.

java is working any of the operating system in which JRE (java run time enviroment) is available.

Java is also object-oriented, whereas C is not.

every work is inside the class in java. but in c this is not necessary.
Reply With Quote
  #13  
13th August 2011, 06:01 PM
balafederer
Senior Member+
 
Join Date: Jul 2011
Posts: 813
Default Re: Main difference between C and Java?

Hello,

Difference between C and Java

* C is a structure oriented program.
* Java is purely object-oriented program.
* Java does not support data type struct & union.
* C have PreProcessor but java does not have this.
* C has declare the type signed and unsigned but java does not support this.

Thank you
Reply With Quote
  #14  
19th August 2011, 05:42 PM
amaan khan ak
 
Join Date: Aug 2011
Location: bikaner
Posts: 579
Default Re: Main difference between C and Java?

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
c language and java language are 2 diffrent types of languages.
c is a structured type language.its not object oriented language.its programming is hard as compare to java.top down approach.
and the another one java is a purely object oriented language.java is simple,robust,portable language.
java is platform independent language and java byte code can be run on any type of operating system.but c doesnt have this property.many companies used java for their work now a days
Reply With Quote
  #15  
12th September 2011, 08:25 PM
manoj rajpurohit
Junior Member
 
Join Date: Feb 2011
Location: Bikaner
Posts: 352
Default Re: Main difference between C and Java?

java is a platform independent language and it is a robust language. it generates a byte code during the compilation of the source code. it is a portable file, now we don`t need the source code because this byte code can be run and it also portable file which can be run on any platform

c++ is a object oriented language, which contain the class and objects. it follow all the characteristics like inheritance, encapsulation, polymorphism.

c language is the base of all the language, it is a structured language. it has top to bottom approach.
Reply With Quote
  #16  
20th September 2011, 05:30 PM
hrushi614
 
Join Date: Aug 2011
Location: chennai
Posts: 388
Default Re: Main difference between C and Java?

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
hi friend,

java is better than c
1) java is portable
2)java provide security
3) java is machine independent
4)java is obect oriented langauge
5)reusing the code is possible in java
Reply With Quote
  #17  
20th September 2011, 11:30 PM
peterpan10
Senior Member+
 
Join Date: Sep 2011
Location: Kolkata
Posts: 509
Default Re: Main difference between C and Java?

Difference between C and Java :

I'm telling you the main 3 Differences between C and Java :

1.JAVA is platform independent but C is not.
2.JAVA is more secure than C
3.JAVA is object oriented but C is structure oriented
Reply With Quote
  #18  
21st September 2011, 06:32 PM
vasu&sakshi
Junior Member
 
Join Date: Apr 2011
Location: Bikaner
Posts: 347
Smile Re: Main difference between C and Java?

Quote:
Originally Posted by Unregistered View Post
what are then main difference between c and java? can you please tell me the difference
Hello Dear
Difference between Java & C
There are main 10 difference are given following:-

1. JAVA is Object-Oriented while C is procedural. Different Paradigms, that is.

2. Java is an Interpreted language while C is a compiled language.

3. C is a low-level language while JAVA is a high-level language.

4. C uses the top-down {sharp & smooth} approach while JAVA uses the bottom-up {on the rocks} approach.

5. Pointer go backstage in JAVA while C requires explicit handling of pointers.

6. The Behind-the-scenes Memory Management with JAVA & The User-Based Memory Management in C.

7. JAVA supports Method Overloading while C does not support overloading at all.

8. Unlike C, JAVA does not support Preprocessors, & does not really them.

9. The standard Input & Output Functions.

10. Exception Handling in JAVA And the errors & crashes in C.

Thank You
Reply With Quote
  #19  
6th November 2011, 01:57 PM
ranjeet250490
Senior Member++++
 
Join Date: Sep 2011
Location: I put up in New Delhi
Posts: 2,326
Default Re: Main difference between C and Java?

C was the first programming language that brought about a change in programming languages.

It made possible to use it for many different purposes being the same software.

Now Java was developed much later than C, and so its advanced form of it. You can say C is also easier than Java, but today most of the websites, softwares are Java enabled.

So its used very widely.
Reply With Quote
  #20  
3rd February 2012, 02:12 PM
tuntunia
Senior Member
 
Join Date: Nov 2011
Posts: 462
Default Re: Main difference between C and Java?

Difference Between C and Java :-

Java doesn't include the C unique statement keywords sizeof and Typedef

Java doesn't contain the dataypes Struct and Union.

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

Java doesn't support an Explicit pointer type.

Java doesn't have a Pre-Processor (i.e #define,#include,# if def )

Java requires that the functions with no arguments must be declared empty Paranthesis and not with the void keyword in C.
Reply With Quote
  #21  
12th February 2012, 11:20 PM
qwertyuiop2758
Senior Member
 
Join Date: Jan 2012
Location: Mumbai
Posts: 304
Default Re: Main difference between C and Java?

Dear
Boty C and C++ are computer languages....

C is the basic programming language .
after learning 'c' language you can be able to learn other specialized languages like c++ or java.

Java is the specialized computer language.
Thankyou
Aishwarya Mehrotra
Reply With Quote
  #22  
17th June 2023, 07:01 PM
Nikhil202k
Banned
 
Join Date: Feb 2012
Posts: 686
Default Re: Main difference between C and Java?

C and Java are both popular programming languages but differ in several key aspects:

Programming Paradigm:

C: C is a procedural programming language. It focuses on functions and structures, with a strong emphasis on low-level control and efficient code execution. C does not have built-in support for object-oriented programming (OOP).
Java: Java is an object-oriented programming (OOP) language. It revolves around objects, classes, inheritance, polymorphism, and encapsulation. Java enforces OOP principles, providing a more modular and reusable approach to programming.
Memory Management:

C: In C, memory management is manual. Programmers are responsible for explicitly allocating and deallocating memory using functions like malloc() and free(). This level of control allows for efficient memory usage but requires careful management to avoid memory leaks and errors.
Java: Java employs automatic memory management through a process called garbage collection. The Java Virtual Machine (JVM) handles memory allocation and deallocation, freeing programmers from the burden of manual memory management. It automatically deallocates memory for objects that are no longer in use.
Platform Independence:

C: C code is compiled into machine-specific binary code, making it highly dependent on the target platform's architecture. Programs typically need to be recompiled or adjusted for different operating systems or hardware.
Java: Java code is compiled into platform-independent bytecode, which is executed on the Java Virtual Machine (JVM). This bytecode allows Java programs to run on any system with a compatible JVM, providing platform independence and adhering to the "write once, run anywhere" principle.
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.
Java: Java provides comprehensive built-in exception handling mechanisms. It offers a structured approach to handle exceptions using try-catch blocks, allowing developers to catch and handle specific types of exceptions gracefully.
Standard Libraries:

C: C has a relatively small standard library that provides basic functionality. Additional libraries or frameworks need to be incorporated to access advanced features or implement specific functionalities.
Java: Java comes with a large standard library known as the Java Development Kit (JDK). It provides a rich set of classes and APIs, offering extensive functionality for tasks such as file I/O, networking, GUI development, and more.
Reply With Quote
Do you have any question? or have anything to say?



Related Topics:

Thread Replies Last Post
Difference between C, C++ and Java? 71 8th April 2019 02:02 PM
What is the difference between Scheduled Casts and Scheduled Tribes/OBS/other communities? 2 28th February 2013 08:56 PM
Difference between C, C++ and Java? 26 20th July 2012 01:57 PM



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