Difference between java and c++ are :
(i) Java does not support pointers. Pointers are inherently insecure and troublesome. Since pointers do
not exist in Java.
(ii) Java does not support operator overloading.
(iii) Java does not perform any automatic
type conversions that result in a loss of precision
(iv) All the code in a Java program is encapsulated within
one or more classes. Therefore, Java does not have global variables or global functions.
(v) Java does not
support multiple inheritance.
Java does not support destructors, but rather, add the finalize() function.
(vi) Java does not have the delete
operator.
(vii) The << and >> are not overloaded for I/O operations
0 comments:
Post a Comment