I have have seen that three method of array are static methods are static.
Array.of. I can understand why they are static methods. Because the variable passed to them can also be something other than array. Same is case with
But I cannot understand that why almost all the methods of
Object are static. Why
values etc are not on
- Is there any advantage of putting them as static method?
- What problems we would have faced if we had