If two batteries, say 2 volts and 5 volts, are connected in parallel, are there any problems? The higher voltage will then want to flow out, but also towards the lower 2 volt battery end, right?
In reality you are not able to connect anything in parallel. There are always resistances and (for AC) capacitances and inductances that cause voltage drops. So connecting two sources will cause current flow from one battery with higher voltage to the other making a voltage drop on the wire. This current can be very high, but it is never infinite, as it would be if the resistance is zero, theoretically in Ohm's law
I = U / R which leads to infinity if
R = 0. For DC circuits it is also important to include
L in transient analysis.
If resistance is almost zero, high current flow probably will cause thermal destruction of the wire and thus disconnecting two sources. If not, and they are batteries or capacitors their charges in steady state will be the same. What will happen with voltages might depend on their internal construction. You may imagine this if you would connect two sources in parallel using a superconductor.
Firstly, I am assuming these batteries to be DC, otherwise this solution is wrong:
If you connect multiple batteries to a circuit, their polarity makes all the difference. If they are opposite in polarity then the battery with lower voltage will charge. A diagram will help to elaborate the question if you are talking about a specific arrangement.
If the batteries are of same polarity, then neither will charge. The detailed solution can be attempted by Kirchoff's loop and junction law. These laws are helpful in parallel connections mainly...
Hope it helps!