0

How to delete a method in java ?

9th Aug 2019, 2:24 AM
Puram Gangadhar
Puram Gangadhar - avatar
5 Answers
+ 3
~ swim ~ exactly. now, it makes me wonder what kind of thing his is working on, because I've never feel the need to have function like that in my code xd
9th Aug 2019, 11:08 AM
Tanay
Tanay - avatar
+ 2
Gangadhar If you're working with classes and objects than you can also use static initialization block which will only executed when the first object is created.
9th Aug 2019, 3:18 AM
Tanay
Tanay - avatar
+ 2
~ swim ~ That's a really good example! well, still I believe it's completely depended upon what approach we use to implement this kind of functionality.
9th Aug 2019, 8:14 PM
Tanay
Tanay - avatar
+ 1
Thank you guys
9th Aug 2019, 3:22 PM
Puram Gangadhar
Puram Gangadhar - avatar
0
I want to create a method that has to work for only one time where as the method is called multiple times. Therefore the method should not work after exuecution(i.e. one time)
9th Aug 2019, 2:38 AM
Puram Gangadhar
Puram Gangadhar - avatar