Over the years, some features in C/C++ programming became abused by the programmers. Although the language allows it, it was known as bad practices. So the creators of Java have disabled them:
Use of Pointers
Operator overloading
Multiple inheritance
Friend classes (access another object’s private members)
Restrictions of explicit type casting (related to memory management)