- Java does not have pointer but instead has non primative variables that references
- Java avoids much of the direct programmer management of memory that causes so many bugs in C and C++
- Java does not have arrays which are references
- Java does not have functions that are outside the scope of a class
- Java's term for function is method
- Multiple inheritance and concept of virtual inheritance in C++. No multiple inheritance in Java. Can get around by user interface
- By default member of class are privates where Java a default member function/variables are visibility
- Platform independence in Java which is not in C++
- All member function in Java class are virtual by default, where C++ need specified
- Constructor can be called from other constructors using this() in Java, this is not in C++
No comments:
Post a Comment