🔥 Launch Offer: Interview Preparation Bundle @ ₹2,499 ₹9,999 • 75% OFF. Offer expires in 🔥 Launch Offer: Interview Preparation Bundle @ ₹2,499 ₹9,999 • 75% OFF. Offer expires in Interview Preparation Bundle @ ₹2,499 ₹9,999

00:00:00 Get Bundle
home / concepts / why-does-collections-unmodifiablelist-still-change-sometimes

Why does Collections.unmodifiableList() still change sometimes?

It creates a read-only view, not a copy. If the original list changes, the unmodifiable view reflects those changes.

String str1=new String("prakash");
String str2=new String("prakash");
System.out.println(str1==str2);

Back to deck