Java - Packages and Access Control
What will be the output of the following code?
import java.util.HashSet;
public class Demo {
public static void main(String[] args) {
HashSet set = new HashSet<>();
set.add("Code");
System.out.println(set.contains("Code"));
}
} 