Yes, you can create class by name Object. But to create the instance of the Object class written by user and use the same. The class should be refered with fully qualified name. i.e If a user writes Object class in a package test, Then refer the Ojbect class as test.Object -arun
It's not that confusing. And I think it is a good idea to start using packages early on while learning JAVA. However, Object is a little vague. I would imagine that your Class file encompusses something a little more defined and less general. IMHO - Keep very descriptive names for your class files. It makes it easier to know what they do at a glance than to have to go into the code every time. Especially if you haven't looked at it in a while.