ClassNotFoundException are two similar exception sound on high level in Java but intent of both type of exception are different. Although every developer must have encountered during development days, some are confused, someone understand , some one try to solve either by googling or another source but one thing is common they encounter this Exception type.
Continue reading ClassNotFoundException in Java
This post demonstrate , how to write you own custom exception in java here I have made
UserNotFoundException. By naming convention, this Exception throws when user not found for provided userId. Here there are three class first,
UserNotFoundException.java (custom exception) , second DAO (
UserDAOImpl.java) and third class Client application which run and gives the output of program. for simlicity throws explicitly.
Continue reading How to Write Your Custom Exception in Java