The cap would stop charging at 1 Volt. You need a difference in voltage to get current to flow. If you hook up the cap, initially it will be 0 volts and increase until it reaches 1 volt. Then, since there is no voltage difference, the cap would stop charging. Warning, don't hook a cap up directly like that, always use a resistor to limit the initial current flow.