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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / devi

c++ java
1) Support Pointers 1) Doesnot support pointers
2) support Multiple Inheritance 2) Indirectly supported
Interface
3) Storage classes 3) static only allowed
4) struct,union,enum 4) Not supported
5) Destructor used 5) Automatically performed
destroy the object using finalize method
6) Operator Overloading 6) Not supported operator
Overloding
7) Preprocessor allowed 7) Not supported

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is the purpose of polymorphism?

0 Answers  


How to calculate the age from the date of birth by using the program?

2 Answers   Accenture,


why destructor is not over loaded?

5 Answers  


What are generic functions and generic classes?

5 Answers  


Program to print 0 to 9 in cross order

3 Answers  






What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

1 Answers   IntraLogic,


The company is a fake company asking for money of RS10000 while training and not offering a job after training. My humble request to you people not to attend Astersys interview

1 Answers   Astersys,


What is the difference between a mixin and inheritance?

0 Answers  


What are the OOPS concepts?

106 Answers   A1 Technology, Bajaj, CTS, EDS, HP, Infosys, Intel, Microsoft, MNC, Persistent, PlanetSoft, ProConstructor, TCS, Virtusa, Wipro, YSoft Solutions,


Name an advantage of linked list over array?

11 Answers   IBM, Infosys,


What is difference between pop and oop?

0 Answers  


Categories