Monday 16 March 2015

Q 02) - What Is The Difference Between c++ and Java ?




 

  •  Java does not support the concept of Pointers. Pointers are inherently tricky and troublesome to use.
  • Java does not support multiple inheritance because it causes more problem s than it solves. Instead Java supports multiple interface inheritance.
  •  Java does not use structures and unions because the traditional data structures are implemented as an object oriented framework( Java Collection Framework ).
  •  All the codes are encapsulated with in a class there fore java does not have a global variables or functions.
  • C++ requires explicit memory management, while java includes automatic garbage collection.

1 comment: