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 is pointer in oop?

535


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1454


What is overriding in oop?

548


Why is polymorphism used?

582


What is the full form of oops?

607






to find out the minimum of two integer number of two different classes using friend function

1639


Can we define a class within the interface?

551


What is polymorphism and types?

596


What is the types of inheritance?

602


Can you inherit a private class?

631


what is graphics

2009


Can abstract class have normal methods?

610


What is the importance of oop?

607


How do you answer polymorphism?

577


program for insertion ,deletion,sorting in double link list

2276