C++ .obj file holds code and data suitable for linking with other object files to create an executable or a shared object file.
when we compile program,compiler executes all lines creats an object file.(f9).When we run the program a linker converts obj file into executable file & stores as exe file so that every time at the time of running program only exe file is executed.but any change made in program will recompile whole program.