Which is better and why ?

by dann12
28 replies
I've been told that if you want to be a better programmer c++ or JAVA. Now I'm not able to decide which one to start !
As I don't know which is better.
So, anyone can help me in this regard ?
  • Profile picture of the author amans54
    HI,
    Both languages have there merits and demerits.In my opinion c++ is the best option because i think all programmers should know the working knowledge of c++.But also java is important so in my opinion the good programmer should have a command over at least two language
    {{ DiscussionBoard.errors[4219710].message }}
  • Profile picture of the author lowriderSTi
    both are very important...but if I were you, I'd go for java.
    {{ DiscussionBoard.errors[4220092].message }}
    • Profile picture of the author RonnyRaygun
      I think java has broader support than c++ Go with Java.
      Signature

      {{ DiscussionBoard.errors[4221395].message }}
  • Profile picture of the author nthmarketing
    This will be a long response

    Java was derived from C++

    Java and C++ syntax is very similar. For instance a stack interface in Java may look like this.
    public interface Stack
    {
    public void Push(Object o);
    public Object Pop();
    };
    And C++
    class Stack
    {
    public:
    virtual void Push(Object&) = 0;
    virtual Object& Pop() = 0;
    };

    Either language will help you if you wanted to understand the other. Java will be easier to learn. Google did a benchmark recently and showed that C++ was faster than Java by "a large margin" if you like reading

    So... If I were to learn one language I think you can't go wrong with either but Java will be easier and C++ will give you a broader basis for programming.

    My 2 Cents,
    Fred
    {{ DiscussionBoard.errors[4221718].message }}
  • Profile picture of the author andrewjustice03
    C++
    Not only it teaches you the very essential to programming. The applications, classes, library, or whatever coded on C++ is fast. For it is near the Kernel of the OS, meaning, it has only need to pass a single interpretation of code to be executed. Unlike Java that it needs a Virtual Machine to be executed.

    Java (high-level)
    -----------------
    C++ (mid-level)
    -----------------
    Kernel or Assembly (low-level)

    During my early days of learning programming, C++ has no good IDE (I used Borland C++), unlike Java (I used Netbeans and Eclipse). But now, you've got many choices (Visual C++, Eclipse CDT, etc) thus, coding will be more easy.

    One thing, C++ is not dead as many may think. C++ will have an update one of these days
    {{ DiscussionBoard.errors[4223049].message }}
    • Profile picture of the author ytntr
      Hope both are good


      if im wrong correct me
      {{ DiscussionBoard.errors[4224965].message }}
  • Profile picture of the author yrnbk
    Both are best. Both have their importance
    {{ DiscussionBoard.errors[4225723].message }}
  • Profile picture of the author Iden Halburt
    Both are good they just differ from eachother. It just depends on what you want to get done. One thing to keep in mind that andrewjustice03 already said is that Java is a High-Level programming language and C++ a Mid-Level.

    The Mid-Level of C++ means that you are closer to the actual PC and thus have more control over the memory used. This makes programs that are (correctly) written in C++ a lot faster. The drawback of this is that C++ is way more code-intensive. Writing a program in C++ will take up way more time than writing a program in Java.

    These days most computers don't need an optimized application to run smoothly as they are strong enough to run it anyway.

    Hope this helped a little,

    Iden
    {{ DiscussionBoard.errors[4227795].message }}
  • Profile picture of the author chazzpalterino
    Originally Posted by dann12 View Post

    I've been told that if you want to be a better programmer c++ or JAVA.
    What do you plan to accomplish with the programs you intend on writing? C++ is a low-level compiled language generally used for complex computing tasks only ... you do the memory management and garbage collection yourself, which in Java you do not.

    Java and C++ are fundamentally different. C++ is used for writing programs you compile into native binaries that run on a set platform. Java does not create truly 'compiled code' but creates byte-code instead, and runs it on a byte-code interpreter, which is another software program. With C++ there is no intermediary. This is why the same compiled Java can run without modification on Linux, Windows and Mac.

    I'm not sure how you really expect anyone to help you on your decision here. If you don't understand how Java and C++ are so different, and know which one you plan on using, you should start with something simpler.

    Just my 2c
    {{ DiscussionBoard.errors[4228959].message }}
  • Profile picture of the author dann12
    Got it.. C++ is relatively low level to JAVA.
    Can anyone tell me the merits of c++ over JAVA and vice-versa ?
    on the basis of which will run faster, efficient, etc..
    {{ DiscussionBoard.errors[4230781].message }}
  • Profile picture of the author silvertower03
    Java and C++ are both object oriented programming languages. Software applications are developed using these applications. Applications based on E-commerce are developed using Java language while C++ language is used towards development of system software
    {{ DiscussionBoard.errors[4234440].message }}
  • Profile picture of the author ngseosept
    Both are good, but i can say that Java is better one Goodluck
    {{ DiscussionBoard.errors[4235044].message }}
  • Profile picture of the author theme
    Hi,

    Start directly Wordpress , then you will learn php,jquery,xhtml and css.

    No alternative to WordPress can be found in the universe. We love it.
    Signature

    Riaz, an experienced Web Designer /Developer.
    Expert in Photoshop, HTML5, CSS3, jQuery, Wordpress.
    My Portfotio Live Wordpress Demo
    skype id : riazmohamed.k

    {{ DiscussionBoard.errors[4235915].message }}
    • Profile picture of the author nthmarketing
      Originally Posted by theme View Post

      Hi,

      Start directly Wordpress , then you will learn php,jquery,xhtml and css.

      No alternative to WordPress can be found in the universe. We love it.
      Wordpress is good for what it was made for and application development isn't one of those things.
      {{ DiscussionBoard.errors[4240787].message }}
    • Profile picture of the author dann12
      Originally Posted by theme View Post

      Hi,

      Start directly Wordpress , then you will learn php,jquery,xhtml and css.

      No alternative to WordPress can be found in the universe. We love it.

      I don't want the web designing languages.. . As I'm searching for programming languages so that I can develop something after I understand it thoroughly !
      {{ DiscussionBoard.errors[4265294].message }}
  • Profile picture of the author Rizimar
    If you're doing web development or cross-platform programming, go with Java. If you are doing a platform-specific application, C++ all the way.
    {{ DiscussionBoard.errors[4238695].message }}
  • Profile picture of the author myeanne
    I would suggest to learn both language, you can use them for different projects and purposes.
    Signature
    Staff Leasing
    We Lease Offshore Employees

    Hire inexpensive labor from the Philippines!
    {{ DiscussionBoard.errors[4239892].message }}
  • Profile picture of the author ussher
    Java.

    Anything you write will run on windows, mac and linux.
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[4241631].message }}
  • Profile picture of the author Mikey Lightning
    Java all the way man! Good luck.
    {{ DiscussionBoard.errors[4241673].message }}
  • Profile picture of the author Ken Durham
    C++ will let you get to the meat of things, and as mentioned, once you learn what "programming" is, all of the other "languages" will come easily.
    Signature

    yes, I am....

    {{ DiscussionBoard.errors[4265438].message }}
  • Profile picture of the author AdWorkMedia
    What programs are you trying to make with these languages? If you are learning a language I would really recommend starting with PHP since you can find a lot of resources/help online and may find it easier to code than Java or C++. You can still apply what you learn from PHP to those languages later on.
    Signature


    AdWork Media » Global Affiliate Network & Content Locking Solutions

    Custom Platform, Flexible Lockers, Offers For Every Country
    {{ DiscussionBoard.errors[4266280].message }}
  • Profile picture of the author ppsk007
    Java is Better

    Its is Multi threaded programming Language
    {{ DiscussionBoard.errors[4266863].message }}
    • Profile picture of the author maxmalini
      I'm going to say that both are important, but if you are looking towards web programming, then Java is what you want.
      {{ DiscussionBoard.errors[4267453].message }}
  • Profile picture of the author John Emdat
    Both are important & good also, I guess!
    {{ DiscussionBoard.errors[4272982].message }}
    • Profile picture of the author wilsonmarcial
      Both Java and C++ are good..
      • C++ was designed for systems and applications programming , extending the C programming language
      • Java is a general-purpose, concurrent, class-based, object-oriented computer programming language that is specifically designed to have as few implementation dependencies as possible. It relies on a java virtual machine to be secure and highly portable
      • Java is a true and complete object oriented language
      • C++ is an extension of C with Object oriented behaviour.C
      • C++ is not a complete object orientd language as that of java
      • Java does not provide template classes
      • C++ offers template classes
      • Java supports multiple inheritance using interface
      • C++ achieves multiple inheritance by permitting classes to inherit from multiple classes
      • Java does not provide global variables
      • Global variables can be declared in c++
      • Java does not support pointers
      • C++ support pointers
      {{ DiscussionBoard.errors[9465235].message }}
  • Profile picture of the author onconference
    Neither is better they both have some advantages but neither its really better... I would learn Java first then c++
    Signature

    Organize Toll-Free Conference Call with Onconference

    http://www.onconference.com/

    {{ DiscussionBoard.errors[9479222].message }}
  • Profile picture of the author jameslopez
    i think java is better compare to others
    Signature
    {{ DiscussionBoard.errors[9518042].message }}
  • Profile picture of the author Member8200
    Java is better. But most of the concept of java are drew from C++. Java is platform and machine independent, it runs regardless of what OS you are working with.

    Go with Java.
    {{ DiscussionBoard.errors[9561419].message }}

Trending Topics