important features of java which differenciate it from c++

Answer Posted / kumod kumar

there are following diff between java and c++
1) one of the most important diff is there is no pointre in
java but pointer is hidden from programmer.
2) java is pure object oriented programming language where
as c++ is not pure object oriented language is also support
c feature.
3) in java everything should be within class includin main
function where as it can be in calss or not.
4) java doesn't support operator overloading where as c++
souuprt
5)there is no global variable in java where as it is in c++
6) there is no distructor in java but threr is finally key
work
7)there is no multipal inharitance but is can be achived by
interface

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is orm?

681


Is jvm a overhead?

627


Are enterprise beans allowed to use thread.sleep()?

652


Define prototype?

585


What is Stream Tokenizer?

1732






How would you reatach detached objects to a session when the same object has already been loaded into the session?

684


What is the relationship between the canvas class and the graphics class?

544


Name three subclasses of the component class?

616


What is bean? Where can it be used?

581


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1785


what are the advantages of JTA over JTS?

1671


What is chat area? Explain.

557


Name the eight primitive java types.

601


What is the purpose of the notifyall() method?

613


What restrictions are placed on the values of each case of a switch statement?

537