Creating an object of Object Type
We can instantiate Object class...My question is what is the use if i create object like below
Object obj = new Object();
obj what is the use?
venkat
We can instantiate Object class...My question is what is the use if i create object like below
Object obj = new Object();
obj what is the use?
venkat
Not much, usually. Occasionally, though. For instance, if you want an object to use as a lock for synchronizing methods on
No, I don't think the compiler should stop you doing that. No, I don't think java.lang.Object is useless. No, I don't think that java.lang.Object should be abstract