In this paper, we first give a sufficient condition on the coefficients of a class of infinite time interval backward stochastic differential equations (BSDEs) under which the infinite time interval BSDEs have a unique solution for any given square integrable terminal value, and then, using the infinite time interval BSDEs, we study the convergence of g-martingales introduced by Peng via a kind of BSDEs. Finally, we study the applications of g-expectations and g-martingales in both finance and economics.