📚 Practice Mode

Java Fundamentals: Types, Control Flow, and Classes

Learn at your own pace with hints and detailed explanations

1 / 10
Multiple Choice

HashMap is thread-safe whereas Hashtable is not10, Which of the following assignment statements is invalid?

  1. double D = 45456.444;
  2. long L = 45784;
  3. int I = L;
  4. int J = (int) D;