Maybe my question is a newbie one, but I can not really understand the circumstances under which I would use junit?
Whether I write simple applications or larger one
JUNIT is the method that is usually accepted by java developer. Where they can provide similar expected input to the function and decide accordingly that written code is perfectly written or if test case fails then different approach may also need to implement. JUNIT will make development fast and will ensure the 0 defects in the function.