solar energy can be used only till the time sun is available unless and until we apply an inverter sought thing to be charged by the energy and provide us with it later.......
Energy comes from Sun to Earth (and is also radiated into space in general). No significant amount of energy gets back into the Sun. That means that the Sun continuously loses energy.