+ 1

What is the purpose of static object in java ? When it is actually used ?

7th May 2021, 2:35 PM
Vishakha Shrivastav
Vishakha Shrivastav - avatar
4 Respostas
+ 1
It is used so that you don't need to make separate class objects for current class
7th May 2021, 2:51 PM
Atul [Inactive]
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
7th May 2021, 5:32 PM
kreddyt
kreddyt - avatar
0
Karthik Reddy Thotamgari yes mostly for custom classes
7th May 2021, 5:43 PM
Atul [Inactive]