aspose file tools*
The moose likes Beginning Java and the fly likes java [question -- difference between java and c] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java [question -- difference between java and c]" Watch "java [question -- difference between java and c]" New topic
Author

java [question -- difference between java and c]

rupali rasal
Greenhorn

Joined: Sep 21, 2009
Posts: 2
difference between java and c
yang xiao
Greenhorn

Joined: Sep 21, 2009
Posts: 2
just like cow and sheep
both are animal but different
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Hi Rupali, welcome to javaranch.

Please take time to Carefully Choose One Forum when you start a topic. The servlet forum is not the right place to ask this question, I'll move it. Also please Use A Meaningful Subject Line when you start a topic...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40041
    
  28
yang xiao wrote:just like cow and sheep
both are animal but different
Much more different than that. More like cow and eel. Both are animals.

C isn't object-oriented; Java is.
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

rupali rasal wrote:difference between java and c

I would recommend you to search on Wikipediaand find the explanation there.
In this way, you will be able to see the differences by hand.

http://muhammadkhojaye.blogspot.com/
M K Rayapudi
Ranch Hand

Joined: Feb 19, 2007
Posts: 158
rupali rasal wrote:
difference between java and c

I thought, you are asking this question because, you already know C language, and want to learn Java
C language knowledge will help you for some extent in learning java,
i.e. Java uses almost(not 100%) the same control structures with almost(not 100%) same syntax.


R6i
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40041
    
  28
Careful; I have known people who get confused because they already know C and don't understand when something which appears similar behaves differently in the two languages. For example protected (in C++ actually) means something different from protected in Java.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14430
    
  23

Also, static has totally different meanings in C, C++ and Java. (It even has multiple meanings in C and other multiple meanings in C++!).


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Chris John
Greenhorn

Joined: Sep 19, 2009
Posts: 7

Both a re good languages. C has been the workhorse for quite some time and is still being used in many places. Java is one of the best languages available now. If you check Tiobe index Java is the first language of choice for quite some year followed by C.
C is basically procedural oriented but I belive you can write object oriented C with some outside help. Java is fully objected oriented. C now a days is mainly sed for embedded system where as Java is used in every walk of life.
Java is phenomenon. If you are planning to learn Java, you'll never regret the decision. But however if you are completely new to programming learning C first can help you a lot. Once you are good at least one language you will be able to check for yourselves the difference b/w other languages.
Fred Hamilton
Ranch Hand

Joined: May 13, 2009
Posts: 679
are you purposely mentioning c instead of c++?

My understanding is that with c (c++) more control over system resources is placed in the hands of the programmer, where as java takes care of a lot of that for you. As a result, java can be less work to develop a similar application. At the same time the fact that some management of system resources is taken out of the hands of the programmer means a certain loss of flexibility, which in some circumstances can be meaningful. For example, in the programming of top of the line chess programs, where speed and performance is everything, c++ is preferred over java by far.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14430
    
  23

And see this: Comparison of Java and C++
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java [question -- difference between java and c]