Out in the sun... well, prob not. It'll have to stay moist. It's growing up the wood stands that hold the tanks at work, but with the way the tanks are against the wall, with the tanks kinda enclosed.
@West1 - java moss can be grown fully aquatic, I've also seen it grown not in water at all, but in terrarium conditions.