Diff between C++ and java?

Answer Posted / gyana

Java is simply different from C++.Because it do some
modification to c++ then after it publish..So there are 6
major difference here i can explain.These are

1-java doesn't support predessors.Where as C++ support this.
2-Java doesnot support Multiple inheritance however it use
this by using interface.
3-Java doesn't contain any pointer value.
4-Java have no template class.
5-Java doesn't contain any datatype such as
struct,enum,union.
6-Java have no Go to keyword.

Above these points are not supported by java , but
supported by c++.So these are the difference between java
and c++.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Transient Object?

633


What is an object class?

553


Which types of exceptions are caught at compile time?

560


How do you check if a number is a perfect square?

510


How to stop a thread in java? Explain about sleep () method in a thread?

578






what is meant by Garbage collection?

616


What are the main differences between notify and notifyAll in Java?

581


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1430


How do you end a program?

542


What are the 3 types of control structures?

527


What is the difference between numeric and integer?

509


What are the different ways of creating thread?

568


Are functions objects in java?

537


What is boolean query?

524


Why main function is static?

665