As long as you want really.
I would say that exercise bikes tend to have quite big padded saddles. These can get pretty uncomfortable after a while. They will also teach you a rather unconventional cycling position, which may be a problem if you want to transfer your cycling to the road.