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

How to improve object oriented design skills?

656


What is the point of polymorphism?

674


What is the use of oops?

694


What is the difference between inheritance and polymorphism?

679


Why is oop useful?

699






write a program that takes input in digits and display the result in words from 1 to 1000

2085


What is use of overloading?

726


What is cohesion in oop?

724


What are the features of oop?

734


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1769


What is polymorphism give a real life example?

639


What is abstraction oop?

717


What is the difference between a constructor and a destructor?

707


Where is pseudocode used?

645


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2853