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
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What restrictions are placed on the location of a package statement within a source code file?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
Are we allowed to change the transaction isolation property in middle of a transaction?
What are the purpose of introspection?
What is ripple effect?
Define the remote object implementation?
What is a modular application?
What is the infobus?
What is the argument type of a programs main() method?
why static class in java
Do I need to import javlang package any time? Why ?
Is the ternary operator written x : y ? Z or x ? Y : z ?
which book is better for jdbc ,servlets and jsp
What is a sessionfactory? Is it a thread-safe object?