Hi,

are there any alternatives for error handling in Java other than exceptions?
i'm just reading on error handling. like in c++, i'm meeting such things as retturn codes, deferred error handling.i haven't gone into much details on these. but are they available in java?

It depends how the method is defined; some methods might be defined as "returns XXX under YYY conditions". If so, you could check the returned value for errors. Other than that, I don't know of any ways to do error checking, but Exceptions and return values are really all you need IMO...

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.