Yes, that's right. I showed both types of initialization one after the other to highlight the difference.
If we don't pass any arguments, it will by default take the type Object.
In the raw type, we don't pass any arguments during initialization.
Print rawTypePrintObject = new Print();
Rahul jaiswal
Developer
In Raw Type of generic class while creating object of class Print its parameter should be Object not Integer. Please correct me If I am wrong.