1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I wanna know the differences between C++ n JAVA!

Discussion in 'Java' started by Chantheeya, Jun 28, 2010.

  1. Chantheeya

    Chantheeya New Member

    Joined:
    Mar 7, 2010
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    0
    Hi!!
    I have started learning JAVA just now... I know nothing more than few simple programs in JAVA n the information that it is a very popular language...... But as i write the program, i find it very lengthy n difficult than C++.... So i just want to know what is it in JAVA that is so special...? What makes it a very popular language? How is it different from C++ in a better way? :surprised :confused: :ponder:
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    There is actually no similarity apart from the fact that both are termed as OO languages.

    One of the article which I think you should read is Inheritance In C++ Vs Java
     
  3. Manojbijnori

    Manojbijnori New Member

    Joined:
    Jun 16, 2009
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Lecturer In Computer Science Department In Enginer
    Location:
    Bijnore
    Differences between C++ and Java are ---
    1.In C++ there is use of pointer whereas in Java pointer is not used
    2. Java does not directly support Multiple inheritance (use interface) where as C++ support
    3. Java is pure Object oriented language where as C++ is not
    4. Java is more Secure and robust then C++.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    No Java is not pure OO language as far as I know.

    Again Robustness depends on programming and not on language. You can say as C++ has pointers it is more prone to user errors than Java.
     

Share This Page