{{theTime}}

Search This Blog

Total Pageviews

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            System.out.println("Shutdown started");
             //  Close all the resource locks
            System.out.println("Shutdown successful");
        }));

No comments:

Java Script GET request Sample Code

fetch(' https://api.public.com/api ')   .then(response => response.json())   .then(data => console.log(data))   .catch(error =...