Here
set s = new HashSet();
Here what does the new operator does exactly.
Is that creates the object for the class Set
or for the object for the constructors class HashSet
. why we want to write these types of codes. and is that any alternative option to create a object for a class without using new keyword.
Please explain me clearly i am new to java programming...