What is the difference between the c++ & java?

Answer Posted / rajeswari.v

The main difference between the c++ & java is
java have
1.Encapuslating
2.Interfaces
3.Web applications
4.Appletes
5.Swings
6.Garbage collector
7.Unique compiler
8.GUI programing
9.Reusable,Reliable,more secure than the c++
10.Persistence supports "Database" connection allows
11.Platform indepent it works on any type of operating system
12.Multithreading
13.java does not requrie any header files,but it uses import
statement instead of #include statement.
14.java have 3 comment
a) Single line comment
b)Multiple line comment
c)Documentation

The above all are not support c++
C++ are
1.Pointers
2.Templtes
3.Destructor to deallocate memory
4.Multiple inheritence
5.Friend function
6.Virtual function
7.Several compilers
8.Presedessors& any data types such as enum,struct,unior
9.Operator overloading
10.Structors
11.Goto operator
12.Automatic type conversion
13.Unsigned integer
14.c++ have 2 comment
a)Single line
b)Multiple line

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is data hiding and abstraction same?

569


Write a c++ program to display pass and fail for three student using static member function

2818


write string class as your own class in java without using any built-in function

1978


How do you achieve runtime polymorphism?

573


What is multilevel inheritance explain with example?

628






What is difference between abstraction and encapsulation?

594


is there any choice in opting subjects like 4 out of 7

1732


What is polymorphism explain?

693


what type of questions

1697


What is encapsulation c#?

601


What is object in oop?

681


What is an advantage of polymorphism?

597


what type of question are asked in thoughtworks pair programming round ?

1766


What are the 5 oop principles?

603


Why do we use encapsulation in oops?

524