{{theTime}}

Search This Blog

Total Pageviews

How to use UnmodifiableList to create Read Only List in Java

private static final List<String> readOnlyCountriesList= java.util.Collections.UnmodifiableList(java.util.Arrays.aslist("USA","JAPAN","EUROPE")) ;

No comments:

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {             System.out.println("Shutdown started");              //  Cl...