abasu.hashnode.devJava Programming: Effective Use of Try-With-Resources Explained (Part-3 of JAVA SE Exceptions Series)TL;DR: Learn how to use Java's try-with-resources statement for efficient resource management, ensuring automatic closure of resources like file streams and database connections to prevent leaks. The try-with-resources statement ensures that resour...Jul 7, 2024·3 min read
abasu.hashnode.devMastering Java Exceptions: Guide to Handling Multiple and Custom Errors (Part-2 of JAVA SE Exceptions Series)TL;DR: Learn how to handle multiple types of exceptions in Java by providing specific handlers for each type. The application asks for a URL, opens it, and displays its contents. It safeguards against various errors, such as invalid URLs or I/O issue...Jul 7, 2024·3 min read
abasu.hashnode.devJava Exceptions Explained: Origin, Purpose, and Mechanism (Part-1 of JAVA SE Exceptions Series)TL;DR: Explore the evolution of Java exceptions from historical interrupts to modern handling techniques. Learn about types like StackOverflowError, OutOfMemoryError, and how to handle them effectively in your Java applications. History The notion of...Jul 6, 2024·13 min read
abasu.hashnode.devUnderstanding the Java Virtual Machine: A Step-by-Step Approachtl;dr The Java Virtual Machine (JVM) enables Java programs to run on any platform without modification, thanks to its ability to translate Java source code into platform-independent bytecode. The JVM emulates a virtual CPU in memory, ensuring that th...Jul 6, 2024·4 min read
abasu.hashnode.devMastering Code Debugging: The Power of Dry Runs and Trace Tablestl;dr: Dry runs and trace tables are manual debugging techniques that help programmers verify the logical flow of their code by tracking variable values step-by-step. Dry runs are informal and can be used at any development stage to find logic errors...Jul 6, 2024·6 min read