0
How to delete a method in java ?
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
+ 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.
+ 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.
+ 1
Thank you guys
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)