All hubs do is to take whatever comes in on one port, duplicate it, and send it out every other port. They are kind of like repeaters in that sense. Therefore, a hub IS a collision domain and a broadcast domain-- ANYTHING that comes in, goes out everywhere. However, if you plug your hub into one port of the switch, and something else into the other switch ports, the devices on the hub will collide with each other, but not with anything else on the switch.
One other thing: you can use a switch to breakup broadcast domains as well. That is what VLANs are all about. But that takes special configuration, a router to route between the VLANS...... All kinds of fun stuff.