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

Can enum be null?

583


What does no cap mean?

590


can we make game by using c

3417


What is abstraction oop?

623


Why do we use encapsulation in oops?

518






2. Give the different notations for the class.\

1586


What does and I oop mean in text?

620


What exactly is polymorphism?

602


What is multilevel inheritance explain with example?

623


What are the two different types of polymorphism?

669


How do you define a class in oop?

626


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2006


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1636


What is meant by oops concept?

608


What are classes oop?

596