Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java [question -- difference between java and c]

 
rupali rasal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
difference between java and c
 
yang xiao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just like cow and sheep
both are animal but different
 
Ankit Garg
Sheriff
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Campbell Ritchie
Sheriff
Pie
Posts: 49776
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
M K Rayapudi
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49776
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 15438
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, static has totally different meanings in C, C++ and Java. (It even has multiple meanings in C and other multiple meanings in C++!).
 
Chris John
Greenhorn
Posts: 7
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 684
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 15438
41
Android IntelliJ IDE Java Scala Spring
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic