In java code, when to expect to throw an exception with a throw statement and when to catch an exception with a try/catch block?
Moreover, how to distinguish between a situation in which an exception should be caught by a method or throw to its caller.
jliao20 0
Newbie Poster
masijade 1,351
Industrious Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.