1. #1
    Unregistered

    What is the differene between java and c++ ? Provide full details .

    what is the differene between java and c++ ? It is a common interview question so i want to get the detailed answer .so please try your best to provide as more difference as you can .

  2. #2
    Prince_Abby Array
    Join Date
    Mar 2012
    Posts
    283

    Re: What is the differene between java and c++ ? Provide full details .

    Hello,
    As per the Interview its an Important question,so here is your answer-
    1. C++ was designed for systems programming and JAVA was Designed to Support Network Computing.
    2. C++ Supports Pointer where as JAVA does not.
    3. Java is platform independent language whereas c++ is dependent on operating system
    4. Java uses Compiler and interpreter both whereas in C++ their is only compiler.
    5. C++ Supports Overloading while Java Does Not.
    6. C++ is more closer to harware then Java
    7. Internet Support is built in Java.
    8. Java only calls by value.

    These are the Important ones. All the Best

  3. #3
    bipin Array
    Join Date
    Feb 2012
    Location
    Pune, Maharashtra
    Posts
    625

    Re: What is the differene between java and c++ ? Provide full details .

    C and JAVA languages both are made to control the programming and network computing.In case of JAVA and C syntax are similar. Both are the programming languages not software languages. Both are used to develop programs and set of programs is developed for a software.

    Following are the main differences between C and Java :


    - Java uses the bottom-up approach while C uses the top-down approach.

    - Java is Object-Oriented while C is procedural.


    - Java is an Interpreted language while C is a compiled language.

    - Java is a high-level language while C is a low-level language.



    - Pointer go backstage in Java while C requires explicit handling of pointers.


    - Java supports Method Overloading while C does not support overloading at all.


    - Java does not support Preprocessors while C does.

  4. #4
    nanipj Array
    Join Date
    Feb 2012
    Location
    Hyderabad
    Posts
    192

    Re: What is the differene between java and c++ ? Provide full details .

    Hi friend,




    Here given below i have attached some links for the difference between C++ and Java with full details please go through it:

    http://r4r.co.in/java/corejava/basic...ials.php?qid=8

    http://www.geekinterview.com/question_details/1060

    So there are some details about C++ and java got through it and have a good knowledge about that subject.

    ALL THE BEST

    WITH REGARDS,
    nanipj.

  5. #5
    irasharma Array
    Join Date
    Dec 2011
    Posts
    372

    Re: What is the differene between java and c++ ? Provide full details .

    C++ was mainly designed for systems programming and Java was created initially to support network computing. But today java is provides support for all purposeincluding internet, distributed system etc.Major differences between the two can be -

    1.C++ supports pointers whereas Java does not pointers. So we can say java supports Restricted pointers.

    2.At compilation time Java Source code converts into byte code .Whereas, C++ run and compile using compiler which converts source code into machine level languages so c++ is plate from dependents

    3.Java is platform independent language but c++ depends upon operating system machine etc.

    4.Java uses compiler and interpreter both and in c++ their is only compiler


    5.C++ supports operator overloading multiple inheritance but java does not.


    6.C++ is more nearer to hardware then Java

    7.Thread support isbuilt-in Java but not in C++.

    8.Internet supportis built-in Java but not in C++.

    9.Java does not support header file, include library files just like C++ .Java use import to include different Classes and methods.

    10.Java does not support default argumentslike C++.

    11.Java has method overloading, butno operator overloadingjust like c++

    12.Java support call by value only.


    13.Java does not supportunsigned integer.

    [FONT=Calibri][/FONT]

  6. #6
    kullayappa Array
    Join Date
    Mar 2012
    Posts
    193

    Re: What is the differene between java and c++ ? Provide full details .

    JAVA IS A OBJECT ORIENTED PROGRAMMING LANGUAGE

    WHEREAS , C++ IS PARTIALLY ORINETD PROGRAMMING LANGUAGE

    and ,

    ~~ c++ is a procedure oriented and object oriented language

    the designer of c++ is "Bjarne strousstrup" in 1979

    it is not a pure object oriented language because of "BACKWARD COMPATABILITY "



    ~~ in java , the main functio is wrriten as
    public static void main (string args[])




    structure of c++ program : -


    #incluse<headerfiles>
    main()
    {
    statements;
    statements;
    }



    structure of java program : -


    documentation section
    package
    import
    interface
    classdefinition
    main method class

  7. #7
    harshit agrawal Array
    Join Date
    Jan 2012
    Posts
    275

    Re: What is the differene between java and c++ ? Provide full details .

    dear.............


    Everything is an object in Java (Single root hierarchy as everything gets derived from java.lang.Object).


    Java does not have all the complicated aspects of C++ ( For ex:


    Pointers, templates, unions, operator overloading, structures etc..) The Java language promoters initially said "No pointers!",


    but when many programmers questioned how


    you can work without pointers, the promoters began saying "Restricted pointers." You can make up your mind whether it?s really a pointer
    or not. In any event, there?s no


    pointer arithmetic. There are no destructors in Java (automatic garbage collection). Java does not support conditional compile
    (#ifdef/#ifndef type). Thread support is built


    into java but not in C++. Java does not support default arguments. There?s no scope resolution operator :: in Java. Java uses the dot for
    everything, but can get away with it


    since you can define elements only within a class. Even the method definitions must always occur within a class, so there is no need for
    scope resolution there either.


    There?s no "goto " statement in Java. Java doesn?t provide multiple inheritance (MI), at least not in the same sense that C++ does. Exception
    handling in Java is different


    because there are no destructors. Java has method overloading, but no operator overloading. The String class does use the + and +=
    operators to concatenate strings and String expressions use automatic type conversion, but that?s a special built-in case. Java is interpreted
    for the most part and hence platform independent.




    java is a pure object oriented programming ,in java not will be used in pointers .


    c++ is a one of the programming language,in c++ will used in all of them ..EX..pointers ,etc

  8. #8
    subham21 Array
    Join Date
    Feb 2012
    Location
    bhubaneswar
    Posts
    493

    Re: What is the differene between java and c++ ? Provide full details .

    Dear friend,

    both c++ & java computer programming language,both have importance in every field.

    1.c++ was designed for system programming where as java is designed for network computing

    2.c++ is more closer to hardware than java

    3.c++ uses only compiler where as java uses both interpreter & compiler.

    4.thread support is build is java but not in c++

    5.c++ supports overloading where as java does not

    6.internet support is build in java not in c++

    7.java does not support unsigned integer where as c++ supports

    8.java supports call by value only.

    Best of luck.......

  9. #9
    subodh1014 Array
    Join Date
    Jan 2012
    Posts
    593

    Re: What is the differene between java and c++ ? Provide full details .

    hi,
    dear friend,
    the basic differences between JAVA and C++ programming is given as below:-

    [FONT=Verdana]
    C++ was mainly designed for systems programming and Java was created initially to support network computing.

    But today java is provides support for all purpose including internet, distributed system etc.
    1.C++ supports pointers whereas Java does not pointers. But when many programmers questioned how you can work without pointers, the promoters began saying "Restricted pointers.” So we can say java supports Restricted pointers.

    2.At compilation time Java Source code converts into byte code .The interpreter execute this byte code at run time and gives output .Java is interpreted for the most part and hence platform independent. C++ run and compile using compiler which converts source code into machine level languages so c++ is plate from dependents

    3.Java is platform independent language but c++ is depends upon operating system machine etc.

    4.Java uses compiler and interpreter both and in c++ their is only compiler
    5.C++ supports operator overloading multiple inheritance but java does not.

    6.C++ is more nearer to hardware then Java

    7.Everything is an object in Java (Single root hierarchy as everything gets derived from java.lang.Object).

    8.Java does is a similar to C++ but not have all the complicated aspects of C++ (ex: Pointers, templates, unions, operator overloading, structures etc..) >>Java does not support conditional compile (#ifdef/#ifndef type).

    9.Thread support is built-in Java but not in C++.

    10.Internet support is built-in Java but not in C++.

    11.Java does not support header file, include library files just like C++ .Java use import to include different Classes and methods.

    12.Java does not support default arguments like C++.

    13.There is no scope resolution operator “:: “in Java.

    14.There is no "goto " statement in Java.

    15.Exception and Auto Garbage Collector handling in Java is different because there are no destructors into Java.

    16.Java has method overloading, but no operator overloading just like c++.

    17.The String class does use the + and += operators to concatenate strings and String expressions use automatic type conversion,

    18.Java support call by value only.

    19.Java does not support unsigned integer. [/FONT]

  10. #10
    ashwak-jo Array
    Join Date
    Apr 2012
    Location
    Anantapur , A.P.
    Posts
    238

    Re: What is the differene between java and c++ ? Provide full details .

    JAVA is an object oriented programming laguage

    but , c++ is a partially oriented programming language


    Actually , C++ is a Procedure oriented and Object oriented programming language'

    The designer of C++ IS ,
    BJARNE STROUSSTRUP in the year 1979

    THE inventor of java is ,

    JAMES GOUSLING


    ~~Actually , C++ is not a purely object oriented programming laguage
    This is because of the Backward compatability


    ** The structure of JAVA program and Structure of C++ program are totally different from eachother



  11. #11
    Archana Agarwal Array
    Join Date
    May 2012
    Location
    Lucknow
    Posts
    22

    Re: What is the differene between java and c++ ? Provide full details .

    My Dear..........
    Java is an object-oriented language, without pointers, garbage collected.
    C is a procedural language, with pointers, not garbage collected.
    it has main features like class ,object,inheritance,polymorphism,abstraction.

    Basically, the standard distribution of Java compiles to C and then to machine code.



    Best of luck.......

  12. #12
    ashwak Array
    Join Date
    Mar 2012
    Posts
    317

    Re: What is the differene between java and c++ ? Provide full details .

    YES , YOU SAID CORRECT

    Actually , C++ is an Procedure oriented and object oriented programming language

    JAVA is purely an Object oriented programming language

    >>> The structure of JAVA program and the structure of C++ Program are totally different one another

    >> JAVA is invented by James Gousling

    >> C++ is invented by Bjarne strousstroup

    >> Java doesnot support default arguments

    >> C++ is designed for system programming whereas JAVA is designed for Network computing

  13. #13
    Lks Rcs Array
    Join Date
    Dec 2011
    Posts
    299

    Re: What is the differene between java and c++ ? Provide full details .

    hi ,

    there are some of the examples are given below :

    JAVA AND C++ :

    POINT - 1 :

    * there is c ++ is the advanced level of c with classes .
    * Java is the platform independent to work any type of OS.

    POINT - 2 :

    * Java can be reusable
    * where as c++ not to be reusable

    POINT- 3 :

    * C ++ does not support persistence because of database connection
    * where as java support database connection .

    POINT - 4 :

    * there will be present the both features
    - Pointers
    - templates

    POINT - 5:

    * C++ supports multiple inheritance
    * where as java supports interface using the form of multiple inheritance .

    In the above examples are useful to you .

+ Reply to Thread

Quick Reply Any Question?

istanbul escort

gaziantep escort

istanbul escort

porno izle

istanbul escort

istanbul escort

istanbul escort
istanbul escort

istanbul escort

kaçak iddaa kaçak bahis güvenilir bahis siteleri iddaa siteleri en iyi bahis siteleri illegal bahis en iyi canlı bahis siteleri casino siteleri canlı bahis siteleri ensobet üyelik bonus veren siteler canlı bahis