i am beginner in java and want to ask a basic question
While reading Strings and Arrays i came to see sometimes we use String Type Arras like this
String Words[]={"first ", "Second"..};
String words="These are sample words";
and some more ways to declare it . I want to ask that what is the basic difference between the two mentioned Strings .. i mean why we need to declare String Type Array instead of String obj= ..;
etc . Can someone please explain
what is the basic difference
-> Why are you trying to compare Water, and Water container? – Rohit Jain 15 hours ago