Exception Handling Templates in Java

Correct Error Handling is Tedious to Write Correct exception handling code can be tedious to write. Try-catch blocks also clutter the code and makes it harder to read. Look at the example below: In this example no exceptions are lost. If an exception is thrown from within the try block, and another exception is thrown … Continue reading Exception Handling Templates in Java

Java NIO qua một vài ví dụ

Java quá chậm, "biết rồi khổ lắm nói mãi", đây là một trong những điểm yếu lớn trên một vài công nghệ của Java và I/O là một ví dụ điển hình. Là một nhà phát triển ứng dụng, bạn luôn phải đau đầu với những kêu ca từ khách hàng khi quá trình đọc … Continue reading Java NIO qua một vài ví dụ