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
Why are my checkboxes not being set from on to off?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Which javutil classes and interfaces support event handling?
what is handle?
Which containers use a border layout as their default layout?
What is the immediate superclass of the applet class?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
Can you give me a simple example of using the requiredif validator rule?
Why won’t the jvm terminate when I close all the application windows?
What are the steps to write p-to-p model application?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
Describe activation process?
What is the purpose of the finally clause of a try-catch-finally statement?
Is “abc” a primitive value?
What are the different methods of identifying an object?