+ 1
What is the purpose of static object in java ? When it is actually used ?
4 odpowiedzi
+ 1
It is used so that you don't need to make separate class objects for current class
0
Atul yeah ur crct but I'm gonna add a point if u add static it can't override and the first function will be printed
0
Karthik Reddy Thotamgari yes mostly for custom classes