what is difference between c++ language and java language

Answer Posted / aakash

java codes looks very similar to that of c++,but there are
many differences.
1.java has no preprocessor or header files.
2.java has no global variables.
3.java has automatic garbage collection.
4.java has no pointers.
5.java has no goto statements.
6.java has no multiple inheritance,java use interfaces instead.
7.java has no destructor.
8.java has strict lenghs for primitive types.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different types of qualifier in java?

1813


How do you explain polymorphism?

565


What are main features of oop?

598


What are oops functions?

559


What is the point of polymorphism?

568






officer say me - i am offered to a smoking , then what can you say

1554


why reinterpret cast is considered dangerous?

1868


class type to basic type conversion

1813


What is the problem with multiple inheritance?

569


What is polymorphism oop?

592


Why is abstraction used?

579


What is property in oops?

538


Explain the advantages of inheritance.

639


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1631


What are the 3 pillars of oop?

593