I am using java language,I have a method that is supposed to return an object if it is found.
If it is not found, should I:
- return null
- throw an exception
- other
Which is the best practise or idiom?
I am using java language,I have a method that is supposed to return an object if it is found.
If it is not found, should I:
Which is the best practise or idiom?