In my opinion, even Object as a return type would have been good.
Kanwaljit Singh
1

Object type would be the most convenient, yes. But it is the most bug-prone too.