• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java [question -- difference between java and c]

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
difference between java and c
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just like cow and sheep
both are animal but different
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 449
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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++!).
 
Greenhorn
Posts: 7
MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 686
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And see this: Comparison of Java and C++
 
reply
    Bookmark Topic Watch Topic
  • New Topic