---
title: "Comment by Rahul jaiswal on \"08 Java - Classes (Part II - Generic Class)\" | Hashnode"
description: "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."
url: "https://hashnode.com/posts/08-java-classes-part-ii-generic-class/663787af407d17e298b986c0/comment/680edb5ac68c0d565f770749"
---

[Discussion](https://hashnode.com/posts/08-java-classes-part-ii-generic-class/663787af407d17e298b986c0)

Comment [08 Java - Classes (Part II - Generic Class)](https://hashnode.com/posts/08-java-classes-part-ii-generic-class/663787af407d17e298b986c0)

[Rahul jaiswal](https://hashnode.com/@Rjais08)

[Apr 28, 2025](https://hashnode.com/posts/08-java-classes-part-ii-generic-class/663787af407d17e298b986c0/comment/680edb5ac68c0d565f770749)

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.

[Chetan Datta](https://hashnode.com/@chetan77)

[Jun 1, 2025](https://hashnode.com/posts/08-java-classes-part-ii-generic-class/663787af407d17e298b986c0/comment/680edb5ac68c0d565f770749#reply-683c87453e12cc1360c2d505)

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();
