If there is no hum when the cable is plugged into the instrument and the amplifier, there is no problem. Without the instrument, the cable is acting as an antenna, sending a 60Hz signal to the amplifier input. This is a common issue with lots of electrical measuring equipment and audio gear.
If you Google "how should you connect a guitar to an amplifier?" you will see that you are supposed to plug the cable into the guitar first, and then plug the cable into the amplifier before turning on the power.
In some cases, a bad cable can cause the same thing, but that probably isn't the issue.
-----------------------
- Turn down volumes: Turn the volume knob on your guitar and the master volume on your amplifier all the way down.
- Power off the amp: Make sure the amplifier's power switch is completely off.
- Plug into the guitar: Take one end of your 1/4-inch instrument cable and push it firmly into the output jack on your guitar until it clicks in.
- Plug into the amplifier: Take the other end of the cable and plug it into the input jack (labeled "Input") on your amplifier.
- Power on the amplifier: Turn on the amplifier's power switch.
