This is how the Navy works. You have two years of training. Once you've finished training you go to your first command which you'll be in a deployable squadron (sea duty). For those four years, how much you fly depends on what type of aircraft or squdron you're in. At our squadron our pilots flew every or every other day usually logging 4-5 hours a day. In addition to flying pilots are given collateral duty, such as scheduling, weapons, 1st Lietenant(hangar upkeep and cleaning), and other jobs. Officers will also stand SDO(Squadron Duty Officer) duty on a rotational basis.
Once a pilots sea tour is up then the desk jobs begin for most. Most pilots go to some sort of staff job for there shore rotation. Some get lucky and become instructors at various training squadrons or get flying billets at station SAR squadrons, such as Whidbey Island, Fallon, and Pensacola. Once pilots are done with their shore rotation, they'll be up for sea duty again. Most wil have been promoted to Lietenant Commander(O-4) and come back as OIC's for detachments or departments heads at fixed wing squadrons. Others can do a disassociated tour and be ships company on the carriers or LHA/LHD's.
After their second sea duty rotation most officers decide to get out and have enough hours to switch to airline careers. The remainder stay in and do staff tours and instructor gigs. These pilots come back as squadron executive and commanding officers.