Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

B 4.1.6 Worksheet 4 Java

Name: _________________________ 1. Calculating Load Factor Calculate the load factor (α) for each scenario. A HashMap with a capacity (number of slots) of 16 is storing 8 items. α = ____ A HashMap with a capacity of 32 is storing 24 items. α = ____ 2. Rehashing A HashMap has a capacity of 16 and a load factor threshold of 0.75. How many items can be added to the map before it triggers a rehash?...

Help