Answer:
A hub is a physical layer networking device which is used to connect multiple devices in a network. They are generally used to connect computers in a LAN. A hub has many ports in it. A computer which intends to be connected to the network is plugged in to one of these ports.
A network switch is networking hardware that connects devices on a computer network by using packet switching to receive and forward data to the destination device.