Are there any reasons why anyone would instantiate the class Object? Why is the class instantiable at all? Could it not have simply been an abstract class?
Asked
Active
Viewed 34 times
0
Tripp Kinetics
- 5,178
- 2
- 23
- 37
-
3quite often is is used for something like `private Object lock = new Object();` for locking. – luk2302 May 09 '18 at 16:07
-
1This question has already being answered: https://stackoverflow.com/questions/710362/java-rationale-of-the-object-class-not-being-declared-abstract – AlejandroMinaya May 09 '18 at 16:08