Explain the List.of method introduced in Java 9.
January 23, 2025
List.of creates immutable lists:
List list = List.of(“a”, “b”, “c”);
Currently Empty: ₹0.00
List.of creates immutable lists:
List list = List.of(“a”, “b”, “c”);
Whether to upskill or for any other query, please drop us a line and we'll be happy to get back to you.
Please leave us your contact details and our team will call you back.