important features of java which differenciate it from c++

Answer Posted / srinu

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 ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a class a subclass of itself?

590


which book is better for jdbc ,servlets and jsp

1646


Why doesn’t the focus feature on the tag work in every circumstance?

569


How is a java object message delivered to a non-java client?

575


What is meant by method chaining?

664






What are the purpose of introspection?

680


What is the difference between ear, jar and war file?

576


What are JTA/JTS and how they used by client?

1718


What is colon_pkg_prefixes and what is its use?

1999


what is an isolation level?

2216


Do we need to override service() method

1145


Are there books about seam?

634


What is aop(assepct oriented programing)?

583


Why does the option tag render selected=selected instead of just selected?

678


What is a policy?

1776