Advantages of C over java

Discussion in 'C' started by tedman, Jan 30, 2007.

  1. tedman

    tedman New Member

    Joined:
    Jan 28, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    I was asked this question in an interview recently

    List 5 advantages of C over Java!

    The only things I could think of were C has pointers and C is faster! what could be the other advantages??

    Thanks,
    Ted :mad:
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Advantages are in the mind of the beholder. C is a lower-level language, with more direct control over the machine as actually built. It compiles to directly executable machine instructions, rather than requiring a virtual machine to exist, at run time, on the target. This reduced abstraction is an advantage in some instances and a detriment in others.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I will add some more to the list

    1. No global variables in java (Dont Quote me on this but its advantage many a times like the LFC theApp variable)
    2. No preprocessor in java.

    If it would have been C++ there are many more to add like
    1. No support for mulitple inheritence
    2. No support for templates
    3. Cannot overload operators
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice