Guys i am so confused please help me, for example List<String> stringList = List.of("Apple", "Banana", "Orange"); this stringList is holding object references of string objects we cant use add remove methods because it need implementation of that interface. but why we can use .get(1) ? if get is interface method ?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
JC|HCL
Java Community | Help. Code. Learn.
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!