📚 Practice Mode

Programming Languages: C, C++, and Java

Learn at your own pace with hints and detailed explanations

1 / 14
True/False

1.Set s = new TreeSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.

  1. True
  2. False